Browse Source

rework menu

main
Hendrik Langer 5 years ago
parent
commit
e53fea6847
  1. 24
      config.toml
  2. 2
      content/about.de.md
  3. 2
      content/about.en.md
  4. 8
      content/post/_index.de.md
  5. 9
      content/post/_index.en.md

24
config.toml

@ -22,7 +22,7 @@ preserveTaxonomyNames = true
copyrighturl = "/about/" copyrighturl = "/about/"
# Show the "built on Hugo" disclaimer # Show the "built on Hugo" disclaimer
showhugo = false #showhugo = true
# Urls for social networks # Urls for social networks
#facebook = "https://facebook.com" #facebook = "https://facebook.com"
@ -53,17 +53,17 @@ preserveTaxonomyNames = true
[menu] [menu]
# This displays buttons in the navbar to access your contents # This displays buttons in the navbar to access your contents
[[menu.main]] # [[menu.main]]
identifier = "about" # An unique identifier for the button # identifier = "about" # An unique identifier for the button
name = "About" # A display name for the button # name = "About" # A display name for the button
url = "/about/" # The path to the content. It can lead to a single page (like here) # url = "/about/" # The path to the content. It can lead to a single page (like here)
weight = 90 # A number to order the buttons in the navbar # weight = 90 # A number to order the buttons in the navbar
[[menu.main]] # [[menu.main]]
identifier = "posts" # identifier = "posts"
name = "Blog" # name = "Blog"
url = "/post/" # The path can lead to a content folder too. # url = "/post/" # The path can lead to a content folder too.
weight = 20 # weight = 20
# [[menu.main]] # [[menu.main]]
# identifier = "test" # An unique identifier for the button # identifier = "test" # An unique identifier for the button

2
content/about.de.md

@ -3,6 +3,8 @@ title: About
description: Über h3ndrik.de description: Über h3ndrik.de
date: 2020-04-27 date: 2020-04-27
aliases: ["about-us","contact","impressum"] aliases: ["about-us","contact","impressum"]
menu: "main"
weight: 90
author: hendrik author: hendrik
--- ---

2
content/about.en.md

@ -3,6 +3,8 @@ title: About
description: About h3ndrik.de description: About h3ndrik.de
date: 2020-04-27 date: 2020-04-27
aliases: ["about-us","contact"] aliases: ["about-us","contact"]
menu: "main"
weight: 90
author: hendrik author: hendrik
--- ---

8
content/post/_index.de.md

@ -0,0 +1,8 @@
---
title: Blog
type: section
author: hendrik
menu: "main"
weight: 20
translationKey: "posts"
---

9
content/post/_index.en.md

@ -0,0 +1,9 @@
---
title: Blog
type: section
author: hendrik
menu: "main"
weight: 20
translationKey: "posts"
---
Loading…
Cancel
Save