1
0
Fork 0

Set title on every page

This commit is contained in:
Moritz Ruth 2020-04-11 00:44:54 +02:00
parent f052a6199b
commit d83462c075
5 changed files with 18 additions and 6 deletions

View file

@ -6,6 +6,7 @@ export default {
** Headers of the page ** Headers of the page
*/ */
head: { head: {
titleTemplate: "%s | Moritz Ruth",
link: [ link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }, { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Alata&display=swap" } { rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Alata&display=swap" }

View file

@ -199,6 +199,7 @@
export default { export default {
name: "IndexPage", name: "IndexPage",
layout: "empty", layout: "empty",
head: () => ({ title: "Moritz Ruth", titleTemplate: "%s" }),
components: { NavigationBar, AnimatedLogo, InstagramIcon, TwitterIcon, NPMIcon, GitHubIcon, EmailIcon }, components: { NavigationBar, AnimatedLogo, InstagramIcon, TwitterIcon, NPMIcon, GitHubIcon, EmailIcon },
mounted() { mounted() {
let configIndex = 0; let configIndex = 0;

View file

@ -1,8 +1,9 @@
<template> <template>
<div class="legal-notice-page"> <div class="legal-notice-page">
<div class="content"> <NavigationBar title="Impressum"/>
<main class="content">
<h1 class="heading--1"> <h1 class="heading--1">
Legal Notice Impressum
</h1> </h1>
<h2 class="heading--3"> <h2 class="heading--3">
Diensteanbieter Diensteanbieter
@ -60,13 +61,18 @@
rel="noopener" rel="noopener"
target="_blank" target="_blank"
>Erstellt mit kostenlosem Datenschutz-Generator.de von Dr. Thomas Schwenke</a> >Erstellt mit kostenlosem Datenschutz-Generator.de von Dr. Thomas Schwenke</a>
</div> </main>
</div> </div>
</template> </template>
<script> <script>
import NavigationBar from "../components/NavigationBar";
export default { export default {
name: "LegalNoticePage", name: "LegalNoticePage",
head: () => ({ htmlAttrs: { lang: "de" } }) components: { NavigationBar },
head: () => ({
htmlAttrs: { lang: "de" },
title: "Legal notice"
})
}; };
</script> </script>

View file

@ -290,6 +290,9 @@
export default { export default {
name: "PrivacyPolicyPage", name: "PrivacyPolicyPage",
components: { NavigationBar, ExternalLink }, components: { NavigationBar, ExternalLink },
head: () => ({ htmlAttrs: { lang: "de" } }) head: () => ({
htmlAttrs: { lang: "de" },
title: "Privacy Policy"
})
}; };
</script> </script>

View file

@ -71,6 +71,7 @@
export default { export default {
name: "ProjectsPage", name: "ProjectsPage",
components: { MyProject, NavigationBar } components: { MyProject, NavigationBar },
head: () => ({ title: "Projects" })
}; };
</script> </script>