diff options
Diffstat (limited to 'index.json')
-rw-r--r-- | index.json | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/index.json b/index.json new file mode 100644 index 0000000..feeb437 --- /dev/null +++ b/index.json @@ -0,0 +1,7 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range site.RegularPages -}} + {{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }} + {{- $.Scratch.Add "index" (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}} + {{- end }} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}} |