2022-12-03 21:40:21 +00:00
|
|
|
{{- $.Scratch.Add "pagesIndex" slice -}}
|
|
|
|
{{- range $index, $page := .Site.RegularPages -}}
|
|
|
|
{{- if gt (len $page.Content) 0 -}}
|
2024-09-26 22:54:41 +00:00
|
|
|
{{- $pageData := (dict "title" (or $page.Title $page.File.LogicalName) "href" $page.Permalink "content" $page.Plain) -}}
|
2022-12-03 21:40:21 +00:00
|
|
|
{{- $.Scratch.Add "pagesIndex" $pageData -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- $.Scratch.Get "pagesIndex" | jsonify -}}
|