From fb6723879eea2dea6f97dd51c2b8fa614b0abc2f Mon Sep 17 00:00:00 2001 From: Abner Coimbre Date: Tue, 12 Nov 2024 15:39:01 -0800 Subject: [PATCH] Media: Add 'Under Construction' banner so I don't get inundated with bug reports --- content/english/media/_index.md | 1 + layouts/media/section.html | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/content/english/media/_index.md b/content/english/media/_index.md index 69463d3..3f5c7be 100644 --- a/content/english/media/_index.md +++ b/content/english/media/_index.md @@ -1,3 +1,4 @@ +++ title="Media" +image="/images/under-construction.svg" +++ diff --git a/layouts/media/section.html b/layouts/media/section.html index 594876b..038a5f1 100644 --- a/layouts/media/section.html +++ b/layouts/media/section.html @@ -1,4 +1,12 @@ {{ define "main" }} + {{ if .Params.Image }} +
+ {{ partial "image" (dict "Src" .Params.Image "Alt" "Banner" "Class" "w-1/4 h-1/4" ) }} +
+ {{ end }} +
+
+
{{ $sections := slice . }}