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

9 lines
484 B
JSON
Raw Normal View History

{{- partialCached "page-meta.hugo" . .RelPermalink }}
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) ) }}
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" .Title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
2021-08-31 09:33:22 +00:00
{{- end }}
{{- end }}
{{- $pages | jsonify (dict "indent" " ") }}