mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
d2d7d808a0
because achretypes caching was unreliable when the whole page was used; Hugo bug or is it just me?
8 lines
473 B
JavaScript
8 lines
473 B
JavaScript
{{- 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 -}}
|
|
var relearn_search_index = {{ $pages | jsonify (dict "indent" " ") }}
|