Change content of footer and navbar

Add support for i18n of footer
This commit is contained in:
Tobias 2023-10-03 11:32:38 +02:00
parent 6ebc886dda
commit 8d7e1ca3a1
4 changed files with 36 additions and 37 deletions

View File

@ -132,37 +132,31 @@ params:
menu: menu:
main: main:
- identifier: prose - identifier: home
name: Prose url: /
url: /prose/
weight: 10 weight: 10
- identifier: about - identifier: about
name: About
url: /about/
weight: 20
- identifier: categories
pre: dropdown 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/ url: /about/
weight: 20 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: dropdown:
- identifier: appearance - identifier: foundation
pre: stars # can be stars, comments or piechart pre: stars # can be stars, comments or piechart
name: Appearance name: Appearance
post: "Easy customization" post: "Easy customization"
@ -182,24 +176,24 @@ menu:
weight: 30 weight: 30
footer: footer:
- identifier: about - identifier: about
name: About name: about
url: /about/ url: /about/
weight: 10 weight: 10
- identifier: blog - identifier: blog
name: Blog name: blog
url: /categories/blog/ url: /categories/blog/
weight: 20 weight: 20
- identifier: news - identifier: news
name: News name: News
url: /categories/news/ url: /categories/news/
weight: 30 weight: 30
- identifier: prose
name: Prose
url: /prose/
weight: 40
- identifier: contact - identifier: contact
name: Contact name: contact
url: /contact/ url: /imprint/
weight: 50
- identifier: imprint
name: imprint
url: /imprint/
weight: 50 weight: 50
markup: markup:

View File

@ -1,5 +1,8 @@
prose = "Prosa" prose = "Prosa"
about = "Über" about = "Über"
home = "Home"
become-a-member = "Mitglied werden"
documents = "Dokumente"
categories = "Kategorien" categories = "Kategorien"
dropdown = "Dropdown" dropdown = "Dropdown"
contact = "Kontakt" contact = "Kontakt"

View File

@ -1,5 +1,8 @@
prose = "Prose" prose = "Prose"
about = "About" about = "About"
home = "Home"
become-a-member = "Become a member"
documents = "documents"
catergories = "Categories" catergories = "Categories"
dropdown = "Dropdown" dropdown = "Dropdown"
contact = "Contact" contact = "Contact"

View File

@ -7,7 +7,7 @@
<nav class="flex flex-wrap justify-center -mx-5 -my-2" aria-label="Footer"> <nav class="flex flex-wrap justify-center -mx-5 -my-2" aria-label="Footer">
{{ range site.Menus.footer }} {{ range site.Menus.footer }}
<div class="px-5 py-2"> <div class="px-5 py-2">
<a href="{{ .URL | absLangURL }}" class="text-base text-gray-400 hover:text-gray-300">{{ .Name }}</a> <a href="{{ .URL | absLangURL }}" class="text-base text-gray-400 hover:text-gray-300 capitalize">{{ or (T .Name) .Name }}</a>
</div> </div>
{{ end }} {{ end }}
</nav> </nav>
@ -53,9 +53,8 @@
{{ end }} {{ end }}
</div> </div>
<p class="mt-8 text-base text-center text-gray-400">&copy; {{ now.Format "2006" }} <p class="mt-8 text-base text-center text-gray-400">&copy; {{ now.Format "2006" }}
{{ .Site.Title }}. All rights {{ .Site.Title }}. All rights reserved.</p>
reserved.</p> <p class="mt-2 text-base text-center text-gray-400">Original theme by <a
<p class="mt-2 text-base text-center text-gray-400">Made with &#x2764;&#xfe0f; by <a
href="https://nusserstudios.com" class="hover:underline hover:text-primary-600"><span href="https://nusserstudios.com" class="hover:underline hover:text-primary-600"><span
class="font-black uppercase">Nusser</span> <span class="font-light uppercase">Studios.</span></a> class="font-black uppercase">Nusser</span> <span class="font-light uppercase">Studios.</span></a>
</p> </p>