diff options
Diffstat (limited to 'layouts/_default/index.json')
-rw-r--r-- | layouts/_default/index.json | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/_default/index.json b/layouts/_default/index.json new file mode 100644 index 0000000..29baf4d --- /dev/null +++ b/layouts/_default/index.json @@ -0,0 +1,7 @@ +{{- $.Scratch.Add "index" slice -}} +{{- range .Site.RegularPages -}} +{{ $date:= .PublishDate.Format "02"}} +{{ $month:= .PublishDate.Format "Jan"}} + {{- $.Scratch.Add "index" (dict "title" .Title "date" $date "month" $month "tags" .Params.tags "image" .Params.image "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}} +{{- end -}} +{{- $.Scratch.Get "index" | jsonify -}}
\ No newline at end of file |