prefix document title with 'ctdo - '

This commit is contained in:
neri 2019-12-17 23:51:06 +01:00
parent 85593557ff
commit cdfc8a91d7
8 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
--- ---
path: "/datenschutz" path: "/datenschutz"
title: "Datenschutzerklärung" title: "datenschutzerklärung"
edit: "datenschutz.mdx" edit: "datenschutz.mdx"
--- ---

View File

@ -1,6 +1,6 @@
--- ---
path: "/events" path: "/events"
title: "Events" title: "events"
edit: "events.mdx" edit: "events.mdx"
--- ---

View File

@ -1,6 +1,6 @@
--- ---
path: "/" path: "/"
title: "Home" title: "home"
edit: "home.mdx" edit: "home.mdx"
--- ---

View File

@ -1,6 +1,6 @@
--- ---
path: "/impressum" path: "/impressum"
title: "Impressum" title: "impressum"
edit: "impressum.mdx" edit: "impressum.mdx"
--- ---

View File

@ -1,6 +1,6 @@
--- ---
path: "/kontakt" path: "/kontakt"
title: "Kontakt" title: "kontakt"
edit: "kontakt.mdx" edit: "kontakt.mdx"
--- ---
import Accordion from "../components/accordion.js" import Accordion from "../components/accordion.js"

View File

@ -1,6 +1,6 @@
--- ---
path: "/treff" path: "/treff"
title: "Zeiten & Location" title: "zeiten & location"
edit: "treff.mdx" edit: "treff.mdx"
--- ---
import RoomState from "../components/roomState.js" import RoomState from "../components/roomState.js"

View File

@ -1,6 +1,6 @@
--- ---
path: "/verein" path: "/verein"
title: "Verein" title: "verein"
edit: "verein.mdx" edit: "verein.mdx"
--- ---

View File

@ -26,7 +26,7 @@ export default function Template({
const { frontmatter, body } = mdx const { frontmatter, body } = mdx
useEffect(() => { useEffect(() => {
document.title = frontmatter.title document.title = `ctdo - ${frontmatter.title.toLowerCase()}`
}, [frontmatter.title]) }, [frontmatter.title])
const editLink = frontmatter.edit ? ide + frontmatter.edit.relativePath : null const editLink = frontmatter.edit ? ide + frontmatter.edit.relativePath : null