summaryrefslogtreecommitdiff
path: root/layouts/index.json
diff options
context:
space:
mode:
authorArne Rief <riearn@proton.me>2025-09-01 21:57:30 +0200
committerArne Rief <riearn@proton.me>2025-09-01 21:57:30 +0200
commitade244c72af62827c4c30151404abf755597f243 (patch)
tree1d6c5c3b24912ab5e5665bad06bb07b1f43c77ac /layouts/index.json
parentdac4024abcfea76f14522a84bee4b7258c37b72d (diff)
Search & socials
Diffstat (limited to 'layouts/index.json')
-rw-r--r--layouts/index.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json
new file mode 100644
index 0000000..29d7e14
--- /dev/null
+++ b/layouts/index.json
@@ -0,0 +1,14 @@
+{{- $allPages := slice -}}
+
+{{- range (where site.RegularPages "Section" "!=" "") -}}
+ {{- $currentPage := dict
+ "title" .Title
+ "summary" (.Summary | plainify | htmlUnescape)
+ "url" .RelPermalink
+ "date" (.Date.Format "2006-01-02T15:04:05Z07:00")
+ "tags" .Params.tags
+ -}}
+ {{- $allPages = $allPages | append $currentPage -}}
+{{- end -}}
+
+{{ jsonify $allPages }}