mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-11-22 12:39:04 +00:00
- replaced deprecated .Scratch with local variables in toc, index.json, share_icons and ltr/rtl shortcodes - replaced newScratch with local variables in post_meta, schema_json and share_icons - keeps state local to each template; output unchanged
8 lines
317 B
JSON
8 lines
317 B
JSON
{{- $index := slice -}}
|
|
{{- range site.RegularPages -}}
|
|
{{- if and (not .Params.searchHidden) (ne .Layout `archives`) (ne .Layout `search`) }}
|
|
{{- $index = $index | append (dict "title" .Title "content" .Plain "permalink" .Permalink "summary" .Summary) -}}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- $index | jsonify -}}
|