]> juplo.de Git - website/commitdiff
thymeleaf-theme: Added layout `index.json` from `PaperMod`
authorKai Moritz <kai@juplo.de>
Sat, 22 Nov 2025 14:43:30 +0000 (15:43 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 16 Dec 2025 18:44:56 +0000 (19:44 +0100)
layouts/index.json [new file with mode: 0644]

diff --git a/layouts/index.json b/layouts/index.json
new file mode 100644 (file)
index 0000000..feeb437
--- /dev/null
@@ -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 -}}