mirror of
https://github.com/trwnh/hugo-theme-paradox.git
synced 2024-11-14 15:31:21 +00:00
8 lines
353 B
JSON
8 lines
353 B
JSON
{{- $.Scratch.Add "pagesIndex" slice -}}
|
|
{{- range $index, $page := .Site.RegularPages -}}
|
|
{{- if gt (len $page.Content) 0 -}}
|
|
{{- $pageData := (dict "title" $page.Title "href" $page.Permalink "content" $page.Plain) -}}
|
|
{{- $.Scratch.Add "pagesIndex" $pageData -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- $.Scratch.Get "pagesIndex" | jsonify -}} |