From e3a66f58aebc82cbede2e2dd183d205b8fb6f27e Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:45:46 +0200 Subject: [PATCH] hugo: create a common wide layout The wide base templates used by tags and learning paths were identical. Creating a single-column `wide` layout instead to enable code reuse. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/learning-paths/_index.md | 2 ++ content/tags/_index.md | 2 ++ .../baseof.html => _default/wide-baseof.html} | 0 layouts/tag/baseof.html | 23 ------------------- 4 files changed, 4 insertions(+), 23 deletions(-) rename layouts/{learning-paths/baseof.html => _default/wide-baseof.html} (100%) delete mode 100644 layouts/tag/baseof.html diff --git a/content/learning-paths/_index.md b/content/learning-paths/_index.md index 04236d6d1d..e57f6b2897 100644 --- a/content/learning-paths/_index.md +++ b/content/learning-paths/_index.md @@ -1,5 +1,7 @@ --- title: Learning paths +cascade: + layout: wide description: | Docker Learning Paths offer structured guides to help you master Docker. keywords: docker, learning, paths, tutorials, resources diff --git a/content/tags/_index.md b/content/tags/_index.md index b502c2f650..f433649861 100644 --- a/content/tags/_index.md +++ b/content/tags/_index.md @@ -1,5 +1,7 @@ --- title: Tags +cascade: + layout: wide --- Here you can browse Docker docs by tag. diff --git a/layouts/learning-paths/baseof.html b/layouts/_default/wide-baseof.html similarity index 100% rename from layouts/learning-paths/baseof.html rename to layouts/_default/wide-baseof.html diff --git a/layouts/tag/baseof.html b/layouts/tag/baseof.html deleted file mode 100644 index bf42ff84da..0000000000 --- a/layouts/tag/baseof.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - {{ partial "head.html" . }} - - - - {{ partial "header.html" . }} -
-
- {{ block "main" . }} - {{ end }} -
-
- - {{/* Load the YouTube player if the page embeds a YouTube video */}} - {{ with .Store.Get "youtube" }} - {{- partial "youtube-script.html" . }} - {{ end }} - - -