diff options
Diffstat (limited to 'layouts/index.json')
-rw-r--r-- | layouts/index.json | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/index.json b/layouts/index.json index 2364d42..095575e 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -1,12 +1,12 @@ -[ +{ "items": [ {{- range $index, $page :=.Site.RegularPages -}} {{- $months := index .Site.Data (i18n "months") -}} {{- $month := index $months (printf "%d" .PublishDate.Month) -}} {{- if ne $index 0 -}},{{- end -}} { - 'title': '{{ .Title }}', - 'link': '{{ .Permalink }}', - 'date': '{{ i18n "published" (dict "Day" .PublishDate.Day "Month" $month "Year" .PublishDate.Year) }}' + "title": "{{ .Title }}", + "url": "{{ .Permalink }}", + "date": "{{ i18n "published" (dict "Day" .PublishDate.Day "Month" $month "Year" .PublishDate.Year) }}" } {{- end -}} -]
\ No newline at end of file +]}
\ No newline at end of file |