Uniformise site title
This commit is contained in:
parent
4b3cbbc45d
commit
cf35cd7456
|
@ -24,6 +24,7 @@ const FONT_PRESETS = {
|
||||||
mono: { ranges: ["20-7F", "2E22-2E25", "2713", "2717"] },
|
mono: { ranges: ["20-7F", "2E22-2E25", "2713", "2717"] },
|
||||||
text: { ranges: ["20-7F", "A0-FF", "2000-206F", "20AC"] },
|
text: { ranges: ["20-7F", "A0-FF", "2000-206F", "20AC"] },
|
||||||
};
|
};
|
||||||
|
const SITE_TITLE = "Ad\xE6dra's blog";
|
||||||
const SITE_DESCRIPTION = [
|
const SITE_DESCRIPTION = [
|
||||||
"Ad\xE6dra",
|
"Ad\xE6dra",
|
||||||
"Software Developper in Paris, France",
|
"Software Developper in Paris, France",
|
||||||
|
@ -96,6 +97,7 @@ const renderArticle = () => {
|
||||||
.use(rehypeStringify)
|
.use(rehypeStringify)
|
||||||
.process(article.convert());
|
.process(article.convert());
|
||||||
const content = renderLayout({
|
const content = renderLayout({
|
||||||
|
SITE_TITLE,
|
||||||
asset,
|
asset,
|
||||||
title: article.getDoctitle(),
|
title: article.getDoctitle(),
|
||||||
meta: {
|
meta: {
|
||||||
|
@ -110,7 +112,7 @@ const renderArticle = () => {
|
||||||
"og:image:alt": "Ad\xE6dra's mascot",
|
"og:image:alt": "Ad\xE6dra's mascot",
|
||||||
"og:description": article.getAttribute("description"),
|
"og:description": article.getAttribute("description"),
|
||||||
"og:locale": "en_GB",
|
"og:locale": "en_GB",
|
||||||
"og:site_name": "Ad\xE6dra",
|
"og:site_name": SITE_TITLE,
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
return renderArticleLayout({
|
return renderArticleLayout({
|
||||||
|
@ -140,7 +142,7 @@ const renderArticle = () => {
|
||||||
asset,
|
asset,
|
||||||
meta: {
|
meta: {
|
||||||
description: SITE_DESCRIPTION,
|
description: SITE_DESCRIPTION,
|
||||||
"og:title": "Ad\xE6dra",
|
"og:title": SITE_TITLE,
|
||||||
"og:type": "website",
|
"og:type": "website",
|
||||||
"og:url": `https://adaedra.eu/`,
|
"og:url": `https://adaedra.eu/`,
|
||||||
"og:image":
|
"og:image":
|
||||||
|
|
|
@ -5,7 +5,7 @@ html(lang="en")
|
||||||
title
|
title
|
||||||
if title
|
if title
|
||||||
!= `${title} – `
|
!= `${title} – `
|
||||||
| Adædra's blog
|
= SITE_TITLE
|
||||||
meta(name="viewport" content="width=device-width, initial-scale=1")/
|
meta(name="viewport" content="width=device-width, initial-scale=1")/
|
||||||
meta(name="theme-color" content="#DDCBA3")/
|
meta(name="theme-color" content="#DDCBA3")/
|
||||||
- for([name, content] of Object.entries(meta))
|
- for([name, content] of Object.entries(meta))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user