2022-11-13 11:33:32 +01:00
|
|
|
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
2021-08-31 10:33:22 +01:00
|
|
|
{{- $pages := slice }}
|
|
|
|
{{- range .Site.Pages }}
|
2023-09-21 17:31:39 +02:00
|
|
|
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
|
2023-09-24 00:27:39 +02:00
|
|
|
{{- $pages = $pages | append (dict
|
|
|
|
"uri" (partial "relLangPrettyUglyURL.hugo" (dict "to" .))
|
2024-04-07 21:41:06 +02:00
|
|
|
"title" (partial "pageHelper/title.hugo" (dict "page" .))
|
2023-09-24 00:27:39 +02:00
|
|
|
"tags" .Params.tags
|
|
|
|
"breadcrumb" (trim ((partial "breadcrumbs.html" (dict "page" . "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ")
|
|
|
|
"description" .Description
|
|
|
|
"content" (.Plain | htmlUnescape)
|
|
|
|
) }}
|
2023-05-19 11:09:05 +02:00
|
|
|
{{- end }}
|
|
|
|
{{- end -}}
|
2021-08-31 10:33:22 +01:00
|
|
|
{{- $pages | jsonify (dict "indent" " ") }}
|