From: Kai Moritz Date: Sat, 22 Nov 2025 14:43:30 +0000 (+0100) Subject: thymeleaf-theme: Added layout `index.json` from `PaperMod` X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=825c0be7f990783977893fb6cec68cdfe9feec34;p=website thymeleaf-theme: Added layout `index.json` from `PaperMod` --- 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 -}}