Files
Aditya Telange a87aee984e refactor(layouts): replace scratch with template variables
- 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
2026-10-18 20:02:03 +05:30

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 -}}