mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 15:57:57 +00:00
docs: use pageRef instead of URL for internal links
This commit is contained in:
parent
61a3995389
commit
be71466468
2 changed files with 13 additions and 13 deletions
|
@ -103,7 +103,7 @@ disableHugoGeneratorInject = true
|
|||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||
url = "showcase/"
|
||||
pageRef = "showcase/"
|
||||
weight = 11
|
||||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
|
@ -114,12 +114,12 @@ disableHugoGeneratorInject = true
|
|||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
|
||||
url = "more/credits/"
|
||||
pageRef = "more/credits/"
|
||||
weight = 30
|
||||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
||||
url = "tags/"
|
||||
pageRef = "tags/"
|
||||
weight = 40
|
||||
|
||||
# this is ourrr way t' showcase th' multilang settings by
|
||||
|
@ -146,7 +146,7 @@ disableHugoGeneratorInject = true
|
|||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||
url = "showcase/"
|
||||
pageRef = "showcase/"
|
||||
weight = 11
|
||||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
|
@ -157,12 +157,12 @@ disableHugoGeneratorInject = true
|
|||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
|
||||
url = "more/credits/"
|
||||
pageRef = "more/credits/"
|
||||
weight = 30
|
||||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
|
||||
url = "tags/"
|
||||
pageRef = "tags/"
|
||||
weight = 40
|
||||
|
||||
# mounts are only needed in this showcase to access the publicly available screenshots;
|
||||
|
|
|
@ -75,7 +75,7 @@ Example from the current website:
|
|||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||
url = "showcase/"
|
||||
pageRef = "showcase/"
|
||||
weight = 11
|
||||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
|
@ -86,12 +86,12 @@ Example from the current website:
|
|||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-bullhorn'></i> Credits"
|
||||
url = "more/credits/"
|
||||
pageRef = "more/credits/"
|
||||
weight = 30
|
||||
|
||||
[[languages.en.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-tags'></i> Tags"
|
||||
url = "tags/"
|
||||
pageRef = "tags/"
|
||||
weight = 40
|
||||
|
||||
[languages.pir]
|
||||
|
@ -109,7 +109,7 @@ Example from the current website:
|
|||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-camera'></i> Showcases"
|
||||
url = "showcase/"
|
||||
pageRef = "showcase/"
|
||||
weight = 11
|
||||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
|
@ -120,12 +120,12 @@ Example from the current website:
|
|||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-bullhorn'></i> Crrredits"
|
||||
url = "more/credits/"
|
||||
pageRef = "more/credits/"
|
||||
weight = 30
|
||||
|
||||
[[languages.pir.menu.shortcuts]]
|
||||
name = "<i class='fas fa-fw fa-tags'></i> Arrr! Tags"
|
||||
url = "tags/"
|
||||
pageRef = "tags/"
|
||||
weight = 40
|
||||
````
|
||||
|
||||
|
@ -133,7 +133,7 @@ Read more about [hugo menu](https://gohugo.io/extras/menus/) and [hugo multiling
|
|||
|
||||
## Shortcuts to pages inside of your project
|
||||
|
||||
If you have shortcuts to pages inside of your project and you don't want them to show up in page menu section, you have two choices:
|
||||
If you have shortcuts to pages inside of your project and you don't want them to show up in page menu section, you have two choices:
|
||||
|
||||
1. Make the page file for the shortcut section a [headless branch bundle](https://gohugo.io/content-management/age-bundles/#headless-bundle) (contained in its own subdirectory and called `_index.md`) and add the following rontmatter configuration to the file (see exampleSite's `content/showcase`). This causes its content to **not** be ontained in the sitemap.
|
||||
|
||||
|
|
Loading…
Reference in a new issue