summaryrefslogtreecommitdiff
path: root/layouts/index.json
diff options
context:
space:
mode:
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 }}