From 8d7e1ca3a130361351574ff61a2c44005500c315 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 3 Oct 2023 11:32:38 +0200 Subject: [PATCH] Change content of footer and navbar Add support for i18n of footer --- hugo.yaml | 60 ++++++++++++++++-------------------- i18n/de.toml | 3 ++ i18n/en.toml | 3 ++ layouts/partials/footer.html | 7 ++--- 4 files changed, 36 insertions(+), 37 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index 2440ce4..1610483 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -132,37 +132,31 @@ params: menu: main: - - identifier: prose - name: Prose - url: /prose/ + - identifier: home + url: / weight: 10 - identifier: about - name: About - url: /about/ - weight: 20 - - identifier: categories pre: dropdown - name: Categories - weight: 30 - - identifier: dropdown - pre: complexdropdown - name: Dropdown - weight: 40 - - identifier: contact - name: Contact - url: /contact/ - weight: 50 - categories: - - identifier: prose - name: Prose - url: /prose/ - weight: 10 - - identifier: about - name: About url: /about/ weight: 20 + - identifier: become-a-member + url: /contact/ + weight: 40 + about: + - identifier: foundation + name: Foundation + url: /about/foundation/ + weight: 10 + - identifier: board + name: Board + url: /about/board/ + weight: 20 + - identifier: documents + name: Dokuments + url: /about/documents/ + weight: 30 dropdown: - - identifier: appearance + - identifier: foundation pre: stars # can be stars, comments or piechart name: Appearance post: "Easy customization" @@ -182,24 +176,24 @@ menu: weight: 30 footer: - identifier: about - name: About + name: about url: /about/ weight: 10 - identifier: blog - name: Blog + name: blog url: /categories/blog/ weight: 20 - identifier: news name: News url: /categories/news/ weight: 30 - - identifier: prose - name: Prose - url: /prose/ - weight: 40 - identifier: contact - name: Contact - url: /contact/ + name: contact + url: /imprint/ + weight: 50 + - identifier: imprint + name: imprint + url: /imprint/ weight: 50 markup: diff --git a/i18n/de.toml b/i18n/de.toml index 2fd3d17..6ed513a 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -1,5 +1,8 @@ prose = "Prosa" about = "Über" +home = "Home" +become-a-member = "Mitglied werden" +documents = "Dokumente" categories = "Kategorien" dropdown = "Dropdown" contact = "Kontakt" diff --git a/i18n/en.toml b/i18n/en.toml index ef90c2f..d2bf9ab 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -1,5 +1,8 @@ prose = "Prose" about = "About" +home = "Home" +become-a-member = "Become a member" +documents = "documents" catergories = "Categories" dropdown = "Dropdown" contact = "Contact" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a620a8e..629ba17 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -7,7 +7,7 @@ @@ -53,9 +53,8 @@ {{ end }}

© {{ now.Format "2006" }} - {{ .Site.Title }}. All rights - reserved.

-

Made with ❤️ by +

Original theme by Nusser Studios.