mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
7 lines
392 B
JSON
7 lines
392 B
JSON
{{- $pages := slice }}
|
|
{{- range .Site.Pages }}
|
|
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
|
{{- $pages = $pages | append (dict "uri" .RelPermalink "title" .Title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- $pages | jsonify (dict "indent" " ") }}
|