mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-10-27 10:43:19 +00:00
7 lines
360 B
JSON
7 lines
360 B
JSON
{{- $pages := slice }}
|
|
{{- range .Site.Pages }}
|
|
{{- if or .Site.Params.searchHiddenPages (and (ne .Params.hidden true) (ne .Title "")) }}
|
|
{{- $pages = $pages | append (dict "uri" .RelPermalink "title" .Title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- $pages | jsonify (dict "indent" " ") }}
|