Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.json « layouts - github.com/asurbernardo/amperage.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 095575e62b70ee6ad54bf3b3e7c8bd2910009aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 }}",
            "url": "{{ .Permalink }}",
            "date": "{{ i18n "published" (dict "Day" .PublishDate.Day "Month" $month "Year" .PublishDate.Year) }}"
        }
    {{- end -}}
]}