hugo-theme-relearn/layouts/_default/index.json
Sören Weber d2d7d808a0
theme: only use RelPermalink for caching #380
because achretypes caching was unreliable when the whole page was used;
Hugo bug or is it just me?
2022-11-13 11:33:32 +01:00

8 lines
446 B
JSON

{{- partialCached "page-meta.hugo" . .RelPermalink }}
{{- $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" " ") }}