summaryrefslogtreecommitdiff
path: root/layouts/index.json
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.json')
-rw-r--r--layouts/index.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/index.json b/layouts/index.json
new file mode 100644
index 0000000..486116c
--- /dev/null
+++ b/layouts/index.json
@@ -0,0 +1,5 @@
+{{- $.Scratch.Add "index" slice -}}
+{{- range where .Site.Pages "Type" "not in" (slice "page" "json") -}}
+{{- $.Scratch.Add "index" (dict "uri" .Permalink "title" .Title "abstract" .Summary "content" .Plain "tags" .Params.tags "categories" .Params.tags) -}}
+{{- end -}}
+{{- $.Scratch.Get "index" | jsonify -}}