2022-11-13 10:33:32 +00:00
|
|
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
2021-08-31 09:33:22 +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) ) }}
|
2023-09-23 22:27:39 +00:00
|
|
|
{{- $pages = $pages | append (dict
|
|
|
|
"uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .))
|
2024-04-07 19:41:06 +00:00
|
|
|
"title" (partial "pageHelper/title.hugo" (dict "page" .))
|
2023-09-23 22:27:39 +00:00
|
|
|
"tags" .Params.tags
|
|
|
|
"breadcrumb" (trim ((partial "breadcrumbs.html" (dict "page" . "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ")
|
2024-04-24 20:40:39 +00:00
|
|
|
"description" (or .Description .Summary)
|
2023-09-23 22:27:39 +00:00
|
|
|
"content" (.Plain | htmlUnescape)
|
|
|
|
) }}
|
2023-05-19 09:09:05 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|
2021-08-31 09:33:22 +00:00
|
|
|
{{- $pages | jsonify (dict "indent" " ") }}
|