From be714664687f8bf4b9a243564638ead382ecb0f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Fri, 2 Jun 2023 12:12:34 +0200 Subject: [PATCH] docs: use pageRef instead of URL for internal links --- exampleSite/config.toml | 12 ++++++------ exampleSite/content/cont/menushortcuts.en.md | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 1f2d5a9e85..2019d66be1 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -103,7 +103,7 @@ disableHugoGeneratorInject = true [[languages.en.menu.shortcuts]] name = " Showcases" - url = "showcase/" + pageRef = "showcase/" weight = 11 [[languages.en.menu.shortcuts]] @@ -114,12 +114,12 @@ disableHugoGeneratorInject = true [[languages.en.menu.shortcuts]] name = " Credits" - url = "more/credits/" + pageRef = "more/credits/" weight = 30 [[languages.en.menu.shortcuts]] name = " 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 = " Showcases" - url = "showcase/" + pageRef = "showcase/" weight = 11 [[languages.pir.menu.shortcuts]] @@ -157,12 +157,12 @@ disableHugoGeneratorInject = true [[languages.pir.menu.shortcuts]] name = " Crrredits" - url = "more/credits/" + pageRef = "more/credits/" weight = 30 [[languages.pir.menu.shortcuts]] name = " Arrr! Tags" - url = "tags/" + pageRef = "tags/" weight = 40 # mounts are only needed in this showcase to access the publicly available screenshots; diff --git a/exampleSite/content/cont/menushortcuts.en.md b/exampleSite/content/cont/menushortcuts.en.md index e3d73c1ebc..761747cbab 100644 --- a/exampleSite/content/cont/menushortcuts.en.md +++ b/exampleSite/content/cont/menushortcuts.en.md @@ -75,7 +75,7 @@ Example from the current website: [[languages.en.menu.shortcuts]] name = " 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 = " Credits" - url = "more/credits/" + pageRef = "more/credits/" weight = 30 [[languages.en.menu.shortcuts]] name = " Tags" - url = "tags/" + pageRef = "tags/" weight = 40 [languages.pir] @@ -109,7 +109,7 @@ Example from the current website: [[languages.pir.menu.shortcuts]] name = " 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 = " Crrredits" - url = "more/credits/" + pageRef = "more/credits/" weight = 30 [[languages.pir.menu.shortcuts]] name = " 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.