From 99092475570f5fcc6fa70919553ff19a2fc66cb2 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 10 Sep 2024 13:28:11 +0200 Subject: [PATCH] hugo: move manuals permalink config to hugo.yaml Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/manuals/_index.md | 3 --- hugo.yaml | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/content/manuals/_index.md b/content/manuals/_index.md index 9e67bc318c..0e0d4fc745 100644 --- a/content/manuals/_index.md +++ b/content/manuals/_index.md @@ -4,9 +4,6 @@ description: Learn how to install, set up, configure, and use Docker products wi keywords: docker, docs, manuals, products, user guides, how-to # hard-code the URL of this page url: /manuals/ -# remove the /manuals/ prefix for pages in this section -cascade: -- url: /:sections[1:]/:slugorfilename notoc: true development: - title: Docker Desktop diff --git a/hugo.yaml b/hugo.yaml index 9053b5dfc8..f77f096a28 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -8,6 +8,12 @@ enableInlineShortcodes: true taxonomies: tag: tags +permalinks: + page: + manuals: /:sections[1:]/:slugorfilename/ + section: + manuals: /:sections[1:]/:slugorfilename/ + markup: tableOfContents: startLevel: 2