From 8344a3af69aa0053acd2a191edca6c1a51dee56a Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 15:43:30 +0100 Subject: [PATCH] Added layout `index.json` from `PaperMod` --- hugo/themes/thymeleaf/layouts/index.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 hugo/themes/thymeleaf/layouts/index.json diff --git a/hugo/themes/thymeleaf/layouts/index.json b/hugo/themes/thymeleaf/layouts/index.json new file mode 100644 index 00000000..feeb437d --- /dev/null +++ b/hugo/themes/thymeleaf/layouts/index.json @@ -0,0 +1,7 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range site.RegularPages -}} + {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }} + {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}} + {{- end }} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} -- 2.39.5