mirror of https://github.com/onweru/compose.git

weru
31.37.2021 dce245200999f3a24ef1651f8b8d3b2827b1854f
separate search content from js  #29
1 files added
7 ■■■■■ changed files
layouts/_default/index.json 7 ●●●●● 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") -}}