2022-11-13 10:33:32 +00:00
|
|
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
2022-11-01 23:14:19 +00:00
|
|
|
{{- $pages := slice }}
|
|
|
|
{{- range .Site.Pages }}
|
|
|
|
{{- if and .Title (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
2022-11-15 06:34:06 +00:00
|
|
|
{{- $pages = $pages | append (dict "uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .)) "title" .Title "tags" .Params.tags "description" .Description "content" (.Plain | htmlUnescape)) }}
|
2022-11-01 23:14:19 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|
|
|
|
var relearn_search_index = {{ $pages | jsonify (dict "indent" " ") }}
|