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 }}
|
2023-09-21 15:31:39 +00:00
|
|
|
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
2024-04-27 12:38:19 +00:00
|
|
|
{{- $tags := slice }}
|
|
|
|
{{- range .GetTerms "tags" }}
|
2024-07-21 22:15:38 +00:00
|
|
|
{{- $tags = $tags | append (partial "pageHelper/title.hugo" (dict "page" .Page "linkTitle" true) | plainify) }}
|
2024-04-27 12:38:19 +00:00
|
|
|
{{- end }}
|
2023-09-23 22:27:39 +00:00
|
|
|
{{- $pages = $pages | append (dict
|
|
|
|
"uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .))
|
2024-07-21 22:15:38 +00:00
|
|
|
"title" (partial "pageHelper/title.hugo" (dict "page" .) | plainify)
|
2024-04-27 12:38:19 +00:00
|
|
|
"tags" $tags
|
2024-08-27 13:35:48 +00:00
|
|
|
"breadcrumb" (trim (partial "breadcrumbs.html" (dict "page" . "dirOnly" true) | plainify | htmlUnescape) "\n\r\t ")
|
|
|
|
"description" (trim (or .Description .Summary | plainify | htmlUnescape) "\n\r\t " )
|
|
|
|
"content" (trim (.Plain | htmlUnescape) "\n\r\t ")
|
2023-09-23 22:27:39 +00:00
|
|
|
) }}
|
2023-05-19 09:09:05 +00:00
|
|
|
{{- end }}
|
2022-11-01 23:14:19 +00:00
|
|
|
{{- end -}}
|
|
|
|
var relearn_search_index = {{ $pages | jsonify (dict "indent" " ") }}
|