Change content of footer and navbar
Add support for i18n of footer
This commit is contained in:
parent
6ebc886dda
commit
8d7e1ca3a1
60
hugo.yaml
60
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:
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
prose = "Prosa"
|
||||
about = "Über"
|
||||
home = "Home"
|
||||
become-a-member = "Mitglied werden"
|
||||
documents = "Dokumente"
|
||||
categories = "Kategorien"
|
||||
dropdown = "Dropdown"
|
||||
contact = "Kontakt"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
prose = "Prose"
|
||||
about = "About"
|
||||
home = "Home"
|
||||
become-a-member = "Become a member"
|
||||
documents = "documents"
|
||||
catergories = "Categories"
|
||||
dropdown = "Dropdown"
|
||||
contact = "Contact"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<nav class="flex flex-wrap justify-center -mx-5 -my-2" aria-label="Footer">
|
||||
{{ range site.Menus.footer }}
|
||||
<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>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
@ -53,9 +53,8 @@
|
|||
{{ end }}
|
||||
</div>
|
||||
<p class="mt-8 text-base text-center text-gray-400">© {{ now.Format "2006" }}
|
||||
{{ .Site.Title }}. All rights
|
||||
reserved.</p>
|
||||
<p class="mt-2 text-base text-center text-gray-400">Made with ❤️ by <a
|
||||
{{ .Site.Title }}. All rights reserved.</p>
|
||||
<p class="mt-2 text-base text-center text-gray-400">Original theme by <a
|
||||
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>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue