mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +00:00
15 lines
709 B
JSON
15 lines
709 B
JSON
{{- partialCached "page-meta.hugo" . .RelPermalink }}
|
|
{{- $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" .))
|
|
"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" .Description
|
|
"content" (.Plain | htmlUnescape)
|
|
) }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- $pages | jsonify (dict "indent" " ") }}
|