From 825c0be7f990783977893fb6cec68cdfe9feec34 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 22 Nov 2025 15:43:30 +0100 Subject: [PATCH] thymeleaf-theme: Added layout `index.json` from `PaperMod` --- layouts/index.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 layouts/index.json diff --git a/layouts/index.json b/layouts/index.json new file mode 100644 index 00000000..feeb437d --- /dev/null +++ b/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