Don't include Rome toolchain suffix when the title includes the word Rome
MODIFY
website/.eleventy.js
website/.eleventy.js
@@ -213,10 +213,12 @@ module.exports = function(eleventyConfig) {
"titlify",
function(title) {
title = (title || "").trim();
+ if (!title.includes("Rome")) {
if (title !== "") {
title += " \u2014 ";
}
title += "Rome Frontend Toolchain";
+ }
return title;
},
);

MODIFY
website/src/_includes/layouts/base.liquid
website/src/_includes/layouts/base.liquid
<meta name="description" content="Unifying the frontend development toolchain.">
<meta name="theme-color" content="#FFC905">
- <meta property="og:title" content="{{ title | titlify }}Rome Frontend Toolchain">
+ <meta property="og:title" content="{{ title | titlify }}">
<meta property="og:description" content="Unifying the frontend development toolchain.">
<meta property="og:image" content="https://romefrontend.dev/img/social-logo.png">
<meta property="twitter:image" content="https://romefrontend.dev/img/social-logo.png">

Don't include Rome toolchain suffix when the title includes the word Rome