mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
docs: adjust docs to config.toml
This commit is contained in:
parent
96d284eb8b
commit
19e8ddbb77
2 changed files with 79 additions and 60 deletions
|
@ -40,11 +40,6 @@ relativeURLs = true
|
||||||
landingPageURL = "/"
|
landingPageURL = "/"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Home"
|
landingPageName = "<i class='fas fa-home'></i> Home"
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
|
||||||
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
|
||||||
url = "/tags/"
|
|
||||||
weight = 5
|
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
[[Languages.en.menu.shortcuts]]
|
||||||
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
||||||
identifier = "ds"
|
identifier = "ds"
|
||||||
|
@ -67,6 +62,11 @@ relativeURLs = true
|
||||||
url = "/credits/"
|
url = "/credits/"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
|
[[Languages.en.menu.shortcuts]]
|
||||||
|
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
||||||
|
url = "/tags/"
|
||||||
|
weight = 40
|
||||||
|
|
||||||
[Languages.pir]
|
[Languages.pir]
|
||||||
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
|
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
@ -74,11 +74,6 @@ relativeURLs = true
|
||||||
landingPageURL = "/pir/"
|
landingPageURL = "/pir/"
|
||||||
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
|
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
|
||||||
|
|
||||||
[[Languages.pir.menu.shortcuts]]
|
|
||||||
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
|
|
||||||
url = "/tags/"
|
|
||||||
weight = 5
|
|
||||||
|
|
||||||
[[Languages.pir.menu.shortcuts]]
|
[[Languages.pir.menu.shortcuts]]
|
||||||
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
||||||
identifier = "ds"
|
identifier = "ds"
|
||||||
|
@ -100,3 +95,8 @@ relativeURLs = true
|
||||||
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
|
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
|
||||||
url = "/credits/"
|
url = "/credits/"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
|
[[Languages.pir.menu.shortcuts]]
|
||||||
|
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
|
||||||
|
url = "/tags/"
|
||||||
|
weight = 40
|
||||||
|
|
|
@ -13,26 +13,31 @@ Example from the current website:
|
||||||
|
|
||||||
````toml
|
````toml
|
||||||
[[menu.shortcuts]]
|
[[menu.shortcuts]]
|
||||||
name = "<i class='fab fa-github'></i> GitHub repo"
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
||||||
identifier = "ds"
|
identifier = "ds"
|
||||||
url = "https://github.com/McShelby/hugo-theme-relearn"
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[[menu.shortcuts]]
|
[[menu.shortcuts]]
|
||||||
name = "<i class='fas fa-camera'></i> Showcases"
|
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||||
url = "/showcase"
|
url = "/showcase/"
|
||||||
weight = 11
|
weight = 11
|
||||||
|
|
||||||
[[menu.shortcuts]]
|
[[menu.shortcuts]]
|
||||||
name = "<i class='fas fa-bookmark'></i> Hugo Documentation"
|
name = "<i class='fas fa-fw fa-bookmark'></i> Hugo Documentation"
|
||||||
identifier = "hugodoc"
|
identifier = "hugodoc"
|
||||||
url = "https://gohugo.io/"
|
url = "https://gohugo.io/"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
|
||||||
[[menu.shortcuts]]
|
[[menu.shortcuts]]
|
||||||
name = "<i class='fas fa-bullhorn'></i> Credits"
|
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
|
||||||
url = "/credits"
|
url = "/credits/"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
|
[[menu.shortcuts]]
|
||||||
|
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
||||||
|
url = "/tags/"
|
||||||
|
weight = 40
|
||||||
````
|
````
|
||||||
|
|
||||||
By default, shortcuts are preceded by a title. This title can be disabled by setting `disableShortcutsTitle=true`.
|
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
|
````toml
|
||||||
[Languages]
|
[Languages]
|
||||||
[Languages.en]
|
[Languages.en]
|
||||||
title = "Documentation for Hugo Relearn Theme"
|
title = "Documentation for Hugo Relearn Theme"
|
||||||
weight = 1
|
weight = 1
|
||||||
languageName = "English"
|
languageName = "English"
|
||||||
|
landingPageURL = "/"
|
||||||
|
landingPageName = "<i class='fas fa-home'></i> Home"
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
[[Languages.en.menu.shortcuts]]
|
||||||
name = "<i class='fab fa-github'></i> GitHub repo"
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
||||||
identifier = "ds"
|
identifier = "ds"
|
||||||
url = "https://github.com/McShelby/hugo-theme-relearn"
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
[[Languages.en.menu.shortcuts]]
|
||||||
name = "<i class='fas fa-camera'></i> Showcases"
|
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||||
url = "/showcase"
|
url = "/showcase/"
|
||||||
weight = 11
|
weight = 11
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
[[Languages.en.menu.shortcuts]]
|
||||||
name = "<i class='fas fa-bookmark'></i> Hugo Documentation"
|
name = "<i class='fas fa-fw fa-bookmark'></i> Hugo Documentation"
|
||||||
identifier = "hugodoc"
|
identifier = "hugodoc"
|
||||||
url = "https://gohugo.io/"
|
url = "https://gohugo.io/"
|
||||||
weight = 20
|
weight = 20
|
||||||
|
|
||||||
[[Languages.en.menu.shortcuts]]
|
[[Languages.en.menu.shortcuts]]
|
||||||
name = "<i class='fas fa-bullhorn'></i> Credits"
|
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
|
||||||
url = "/credits"
|
url = "/credits/"
|
||||||
weight = 30
|
weight = 30
|
||||||
|
|
||||||
[Languages.pir]
|
[[Languages.en.menu.shortcuts]]
|
||||||
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
|
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
||||||
weight = 2
|
url = "/tags/"
|
||||||
languageName = "Arrr! Pirrrates"
|
weight = 40
|
||||||
|
|
||||||
[[Languages.pir.menu.shortcuts]]
|
[Languages.pir]
|
||||||
name = "<i class='fab fa-github'></i> GitHub repo"
|
title = "Documentat'n fer Cap'n Hugo Relearrrn Theme"
|
||||||
identifier = "ds"
|
weight = 1
|
||||||
url = "https://github.com/McShelby/hugo-theme-relearn"
|
languageName = "Arrr! Pirrrates"
|
||||||
weight = 10
|
landingPageURL = "/pir/"
|
||||||
|
landingPageName = "<i class='fas fa-home'></i> Arrr! Home"
|
||||||
|
|
||||||
[[Languages.pir.menu.shortcuts]]
|
[[Languages.pir.menu.shortcuts]]
|
||||||
name = "<i class='fas fa-camera'></i> Showcases"
|
name = "<i class='fab fa-fw fa-github'></i> GitHub repo"
|
||||||
url = "/showcase"
|
identifier = "ds"
|
||||||
weight = 11
|
url = "https://github.com/McShelby/hugo-theme-relearn"
|
||||||
|
weight = 10
|
||||||
|
|
||||||
[[Languages.pir.menu.shortcuts]]
|
[[Languages.pir.menu.shortcuts]]
|
||||||
name = "<i class='fas fa-bookmark'></i> Cap'n Hugo Documentat'n"
|
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||||
identifier = "hugodoc"
|
url = "/showcase/"
|
||||||
url = "https://gohugo.io/"
|
weight = 11
|
||||||
weight = 20
|
|
||||||
|
|
||||||
[[Languages.pir.menu.shortcuts]]
|
[[Languages.pir.menu.shortcuts]]
|
||||||
name = "<i class='fas fa-bullhorn'></i> Crrredits"
|
name = "<i class='fas fa-fw fa-bookmark'></i> Cap'n Hugo Documentat'n"
|
||||||
url = "/credits"
|
identifier = "hugodoc"
|
||||||
weight = 30
|
url = "https://gohugo.io/"
|
||||||
|
weight = 20
|
||||||
|
|
||||||
|
[[Languages.pir.menu.shortcuts]]
|
||||||
|
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
|
||||||
|
url = "/credits/"
|
||||||
|
weight = 30
|
||||||
|
|
||||||
|
[[Languages.pir.menu.shortcuts]]
|
||||||
|
name = "<i class='fas fa-fw fa-tags'></i> 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)
|
Read more about [hugo menu](https://gohugo.io/extras/menus/) and [hugo multilingual menus](https://gohugo.io/content-management/multilingual/#menus)
|
Loading…
Reference in a new issue