diff options
Diffstat (limited to 'docs/layouts/_default')
-rw-r--r-- | docs/layouts/_default/index.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/layouts/_default/index.json b/docs/layouts/_default/index.json new file mode 100644 index 0000000000..ae08324d8e --- /dev/null +++ b/docs/layouts/_default/index.json @@ -0,0 +1,5 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range .Site.RegularPages -}} +{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} |