add: index.json layout
Deploy / Deploy (push) Successful in 3s

This commit is contained in:
Vezpi committed 2025-06-02 12:52:40 +00:00
1 parent 31ab29ccbb
commit 82170a7ee5
3 files changed
+13

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict
"title" .Title
"permalink" .Permalink
"summary" .Summary
"tags" .Params.tags
"date" (.Date.Format "2006-01-02")
) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}