From cf35cd74565be96770fc9ff18eb2f2712d153318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20=E2=80=9CAd=C3=A6dra=E2=80=9D=20Hamel?= Date: Fri, 14 Jun 2024 03:50:53 +0200 Subject: [PATCH] Uniformise site title --- gulpfile.js | 6 ++++-- src/layout.pug | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index be63e2c..2591dc5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -24,6 +24,7 @@ const FONT_PRESETS = { mono: { ranges: ["20-7F", "2E22-2E25", "2713", "2717"] }, text: { ranges: ["20-7F", "A0-FF", "2000-206F", "20AC"] }, }; +const SITE_TITLE = "Ad\xE6dra's blog"; const SITE_DESCRIPTION = [ "Ad\xE6dra", "Software Developper in Paris, France", @@ -96,6 +97,7 @@ const renderArticle = () => { .use(rehypeStringify) .process(article.convert()); const content = renderLayout({ + SITE_TITLE, asset, title: article.getDoctitle(), meta: { @@ -110,7 +112,7 @@ const renderArticle = () => { "og:image:alt": "Ad\xE6dra's mascot", "og:description": article.getAttribute("description"), "og:locale": "en_GB", - "og:site_name": "Ad\xE6dra", + "og:site_name": SITE_TITLE, }, render() { return renderArticleLayout({ @@ -140,7 +142,7 @@ const renderArticle = () => { asset, meta: { description: SITE_DESCRIPTION, - "og:title": "Ad\xE6dra", + "og:title": SITE_TITLE, "og:type": "website", "og:url": `https://adaedra.eu/`, "og:image": diff --git a/src/layout.pug b/src/layout.pug index 7c634c8..495f987 100644 --- a/src/layout.pug +++ b/src/layout.pug @@ -5,7 +5,7 @@ html(lang="en") title if title != `${title} – ` - | Adædra's blog + = SITE_TITLE meta(name="viewport" content="width=device-width, initial-scale=1")/ meta(name="theme-color" content="#DDCBA3")/ - for([name, content] of Object.entries(meta))