Init
This commit is contained in:
6
themes/agico-hugo/layouts/_default/index.json
Executable file
6
themes/agico-hugo/layouts/_default/index.json
Executable file
@@ -0,0 +1,6 @@
|
||||
{{- $.Scratch.Add "index" slice -}}
|
||||
{{- range where site.RegularPages "Section" "in" site.Params.mainSections -}}
|
||||
{{ $date:= .PublishDate.Format "02"}}
|
||||
{{- $.Scratch.Add "index" (dict "title" .Title "date" $date "tags" .Params.tags "image" .Params.image "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
|
||||
{{- end -}}
|
||||
{{- $.Scratch.Get "index" | jsonify -}}
|
||||
Reference in New Issue
Block a user