From 5dff188fa49457aa972ec3b0569dfcc13b0600b9 Mon Sep 17 00:00:00 2001 From: Lyn Fugmann Date: Fri, 13 Sep 2024 18:21:13 +0200 Subject: [PATCH] add page titles, auto set navigation key --- _layouts/page.njk | 5 +++++ content/accessibility.md | 3 +-- content/campus.md | 3 +-- content/faq.md | 3 +-- content/first-steps.md | 3 +-- content/guidelines.md | 3 +-- content/imprint.md | 3 +-- content/privacy.md | 3 +-- content/program.md | 3 +-- 9 files changed, 13 insertions(+), 16 deletions(-) diff --git a/_layouts/page.njk b/_layouts/page.njk index 6f5f336..3460971 100644 --- a/_layouts/page.njk +++ b/_layouts/page.njk @@ -1,3 +1,8 @@ +--- +eleventyComputed: + eleventyNavigation: + key: "{{ title }}" +--- diff --git a/content/accessibility.md b/content/accessibility.md index 320af8c..19367cf 100644 --- a/content/accessibility.md +++ b/content/accessibility.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: Accessibility +title: Accessibility tags: footerNav --- # Accessibility diff --git a/content/campus.md b/content/campus.md index f2b29c8..0debced 100644 --- a/content/campus.md +++ b/content/campus.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: Campus & Faculty +title: Campus & Faculty tags: mainNav --- # Campus & Faculty diff --git a/content/faq.md b/content/faq.md index 6134f8f..ec04112 100644 --- a/content/faq.md +++ b/content/faq.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: FAQ +title: FAQ tags: mainNav --- # Frequently Asked Questions diff --git a/content/first-steps.md b/content/first-steps.md index 119d9a1..1d4fd07 100644 --- a/content/first-steps.md +++ b/content/first-steps.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: First Steps +title: First Steps tags: mainNav --- # First Steps diff --git a/content/guidelines.md b/content/guidelines.md index 6f2b62a..a0eeefb 100644 --- a/content/guidelines.md +++ b/content/guidelines.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: Community Guidelines +title: Community Guidelines tags: footerNav --- # Community Guidelines diff --git a/content/imprint.md b/content/imprint.md index aa490e8..30bbdcb 100644 --- a/content/imprint.md +++ b/content/imprint.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: Imprint +title: Imprint tags: footerNav --- # Imprint diff --git a/content/privacy.md b/content/privacy.md index 21aedbe..8308e30 100644 --- a/content/privacy.md +++ b/content/privacy.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: Privacy +title: Privacy tags: footerNav --- # Privacy Policy diff --git a/content/program.md b/content/program.md index 3a185e9..05e91a7 100644 --- a/content/program.md +++ b/content/program.md @@ -1,7 +1,6 @@ --- layout: page.njk -eleventyNavigation: - key: Program +title: Program tags: mainNav --- # Program