From 37d24211ce15c78cf49333058c19fa3457948201 Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Sat, 23 Dec 2023 00:03:28 +0100 Subject: [PATCH] ensure there's a title for each piece of content (#165) Signed-off-by: Daniel Holbach --- layouts/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/index.html b/layouts/index.html index 4e5b2bb..5aadba4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -70,6 +70,7 @@ {{ range $index_val, $elem_val := $content }} + {{ if .Title }} {{ $fnav_title := .Title }}{{ with .Params.navigation_menu_title }}{{ $fnav_title = . }}{{ end }}
@@ -82,6 +83,7 @@
+ {{ end }} {{ end }} {{ end }}