hugo-theme-relearn/layouts/_default/index.json

8 lines
392 B
JSON
Raw Normal View History

2021-08-31 09:33:22 +00:00
{{- $pages := slice }}
{{- range .Site.Pages }}
2021-09-04 10:23:55 +00:00
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
2021-08-31 09:33:22 +00:00
{{- $pages = $pages | append (dict "uri" .RelPermalink "title" .Title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
{{- end }}
{{- end }}
{{- $pages | jsonify (dict "indent" " ") }}