diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9307e83983..46c128f33d 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -40,11 +40,6 @@ relativeURLs = true landingPageURL = "/" landingPageName = " Home" - [[Languages.en.menu.shortcuts]] - name = " Tags" - url = "/tags/" - weight = 5 - [[Languages.en.menu.shortcuts]] name = " GitHub repo" identifier = "ds" @@ -67,6 +62,11 @@ relativeURLs = true url = "/credits/" weight = 30 + [[Languages.en.menu.shortcuts]] + name = " Tags" + url = "/tags/" + weight = 40 + [Languages.pir] title = "Documentat'n fer Cap'n Hugo Relearrrn Theme" weight = 1 @@ -74,11 +74,6 @@ relativeURLs = true landingPageURL = "/pir/" landingPageName = " Arrr! Home" - [[Languages.pir.menu.shortcuts]] - name = " Arrr! Tags" - url = "/tags/" - weight = 5 - [[Languages.pir.menu.shortcuts]] name = " GitHub repo" identifier = "ds" @@ -100,3 +95,8 @@ relativeURLs = true name = " Crrredits" url = "/credits/" weight = 30 + + [[Languages.pir.menu.shortcuts]] + name = " Arrr! Tags" + url = "/tags/" + weight = 40 diff --git a/exampleSite/content/cont/menushortcuts.en.md b/exampleSite/content/cont/menushortcuts.en.md index 18c53ad05d..a1ced9b7bb 100644 --- a/exampleSite/content/cont/menushortcuts.en.md +++ b/exampleSite/content/cont/menushortcuts.en.md @@ -13,26 +13,31 @@ Example from the current website: ````toml [[menu.shortcuts]] -name = " GitHub repo" +name = " GitHub repo" identifier = "ds" url = "https://github.com/McShelby/hugo-theme-relearn" weight = 10 [[menu.shortcuts]] -name = " Showcases" -url = "/showcase" +name = " Showcases" +url = "/showcase/" weight = 11 [[menu.shortcuts]] -name = " Hugo Documentation" +name = " Hugo Documentation" identifier = "hugodoc" url = "https://gohugo.io/" weight = 20 [[menu.shortcuts]] -name = " Credits" -url = "/credits" +name = " Credits" +url = "/credits/" weight = 30 + +[[menu.shortcuts]] +name = " Tags" +url = "/tags/" +weight = 40 ```` By default, shortcuts are preceded by a title. This title can be disabled by setting `disableShortcutsTitle=true`. @@ -55,59 +60,73 @@ Example from the current website: ````toml [Languages] -[Languages.en] -title = "Documentation for Hugo Relearn Theme" -weight = 1 -languageName = "English" + [Languages.en] + title = "Documentation for Hugo Relearn Theme" + weight = 1 + languageName = "English" + landingPageURL = "/" + landingPageName = " Home" -[[Languages.en.menu.shortcuts]] -name = " GitHub repo" -identifier = "ds" -url = "https://github.com/McShelby/hugo-theme-relearn" -weight = 10 + [[Languages.en.menu.shortcuts]] + name = " GitHub repo" + identifier = "ds" + url = "https://github.com/McShelby/hugo-theme-relearn" + weight = 10 -[[Languages.en.menu.shortcuts]] -name = " Showcases" -url = "/showcase" -weight = 11 + [[Languages.en.menu.shortcuts]] + name = " Showcases" + url = "/showcase/" + weight = 11 -[[Languages.en.menu.shortcuts]] -name = " Hugo Documentation" -identifier = "hugodoc" -url = "https://gohugo.io/" -weight = 20 + [[Languages.en.menu.shortcuts]] + name = " Hugo Documentation" + identifier = "hugodoc" + url = "https://gohugo.io/" + weight = 20 -[[Languages.en.menu.shortcuts]] -name = " Credits" -url = "/credits" -weight = 30 + [[Languages.en.menu.shortcuts]] + name = " Credits" + url = "/credits/" + weight = 30 -[Languages.pir] -title = "Documentat'n fer Cap'n Hugo Relearrrn Theme" -weight = 2 -languageName = "Arrr! Pirrrates" + [[Languages.en.menu.shortcuts]] + name = " Tags" + url = "/tags/" + weight = 40 -[[Languages.pir.menu.shortcuts]] -name = " GitHub repo" -identifier = "ds" -url = "https://github.com/McShelby/hugo-theme-relearn" -weight = 10 + [Languages.pir] + title = "Documentat'n fer Cap'n Hugo Relearrrn Theme" + weight = 1 + languageName = "Arrr! Pirrrates" + landingPageURL = "/pir/" + landingPageName = " Arrr! Home" -[[Languages.pir.menu.shortcuts]] -name = " Showcases" -url = "/showcase" -weight = 11 + [[Languages.pir.menu.shortcuts]] + name = " GitHub repo" + identifier = "ds" + url = "https://github.com/McShelby/hugo-theme-relearn" + weight = 10 -[[Languages.pir.menu.shortcuts]] -name = " Cap'n Hugo Documentat'n" -identifier = "hugodoc" -url = "https://gohugo.io/" -weight = 20 + [[Languages.pir.menu.shortcuts]] + name = " Showcases" + url = "/showcase/" + weight = 11 -[[Languages.pir.menu.shortcuts]] -name = " Crrredits" -url = "/credits" -weight = 30 + [[Languages.pir.menu.shortcuts]] + name = " Cap'n Hugo Documentat'n" + identifier = "hugodoc" + url = "https://gohugo.io/" + weight = 20 + + [[Languages.pir.menu.shortcuts]] + name = " Crrredits" + url = "/credits/" + weight = 30 + + [[Languages.pir.menu.shortcuts]] + name = " Arrr! Tags" + url = "/tags/" + weight = 40 ```` Read more about [hugo menu](https://gohugo.io/extras/menus/) and [hugo multilingual menus](https://gohugo.io/content-management/multilingual/#menus) \ No newline at end of file