Skip to content

Commit

Permalink
Added a menu since the automatic menu was removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
frjo committed Aug 21, 2024
1 parent 57e7801 commit 25b797d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions content/sv/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ If you got here you just discovered the language switcher that is built in to th

This should be in Swedish but it just here to show how the multilingual feature works.

Här är lite svensk text för att fylla på utrymmet en del.
30 changes: 30 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,38 @@ languages:
languageName: "English"
languageCode: "en-GB"
contentDir: content/en
menu:
main:
- Name: "Home"
weight: -10
pageRef: "/"
- Name: "Blog"
weight: 2
pageRef: "/blog/"
- Name: "Podcast"
weight: 4
pageRef: "/podcast/"
- Name: "Products"
weight: 6
pageRef: "/products/"
- Name: "Misc"
weight: 8
pageRef: "/misc/"
- Name: "Search"
weight: 10
pageRef: "/search/"
- Name: "Contact"
weight: 12
pageRef: "/contact/"

sv:
weight: 2
languageName: "Svenska"
languageCode: "sv-SE"
contentDir: content/sv
menu:
main:
- Name: "Hem"
weight: -10
pageRef: "/"

0 comments on commit 25b797d

Please sign in to comment.