aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-16 16:37:19 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-16 16:37:19 +0300
commit92f11596022523879342a80c30482a0622d77fd1 (patch)
tree3e15eb77d508416064ec6c85c394affba094c0c7 /layouts/_default
parentf5ddf1a557ec00be51fb2608303e65f9256f8d8d (diff)
Auto-commit 2024-12-16
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/section.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/section.json b/layouts/_default/section.json
new file mode 100644
index 0000000..9317e4c
--- /dev/null
+++ b/layouts/_default/section.json
@@ -0,0 +1,5 @@
+{{- $.Scratch.Add "index" slice -}}
+{{- range .Pages -}}
+ {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .RawContent "permalink" .Permalink) -}}
+{{- end -}}
+{{- $.Scratch.Get "index" | jsonify -}}