hugo-theme-relearn/layouts/_default/index.json

16 lines
723 B
JSON
Raw Normal View History

{{- partialCached "page-meta.hugo" . .RelPermalink }}
2021-08-31 09:33:22 +00:00
{{- $pages := slice }}
{{- range .Site.Pages }}
{{- if and .Title .RelPermalink (or (ne (.Scratch.Get "relearnIsHiddenStem") true) (ne .Site.Params.disableSearchHiddenPages true) ) }}
{{- $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" .))
"tags" .Params.tags
"breadcrumb" (trim ((partial "breadcrumbs.html" (dict "page" . "dirOnly" true)) | plainify | htmlUnescape) "\n\r\t ")
"description" (or .Description .Summary)
"content" (.Plain | htmlUnescape)
) }}
{{- end }}
{{- end -}}
2021-08-31 09:33:22 +00:00
{{- $pages | jsonify (dict "indent" " ") }}