Uniformise site title

This commit is contained in:
Thibault “Adædra” Hamel 2024-06-14 03:50:53 +02:00
parent 4b3cbbc45d
commit cf35cd7456
2 changed files with 5 additions and 3 deletions

View File

@ -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":

View File

@ -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))