| layouts/_default/index.json | ●●●●● patch | view | raw | blame | history |
layouts/_default/index.json
New file @@ -0,0 +1,7 @@ {{- $.Scratch.Add "index" slice -}} {{- range .Site.Pages -}} {{- if ne .Type "search" -}} {{- $.Scratch.Add "index" (dict "title" .Title "body" .Plain "link" .Permalink) -}} {{- end -}} {{- end -}} {{- jsonify ($.Scratch.Get "index") -}}