mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-24 16:02:18 +00:00
7 lines
253 B
JSON
7 lines
253 B
JSON
|
{{- $.Scratch.Add "index" slice -}}
|
||
|
{{- range .Site.Pages -}}
|
||
|
{{- if ne .Type "search" -}}
|
||
|
{{- $.Scratch.Add "index" (dict "title" .Title "body" .Plain "link" .Permalink) -}}
|
||
|
{{- end -}}
|
||
|
{{- end -}}
|
||
|
{{- jsonify (uniq ($.Scratch.Get "index")) -}}
|