From f61a5f2911abc1506851980da5f4f6edd69d9134 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 6 Jan 2020 19:09:10 +0100 Subject: Use ISO8601 date format --- layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 06b290a..7ccfef6 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -11,10 +11,10 @@ {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} {{ range (where $pages "Section" "!=" "") }}
  • - {{ .Date.Format "2006/01/02" }} + {{ .Date.Format "2006-01-02" }} {{ .Title | markdownify }}
  • {{ end }} -{{ partial "footer.html" . }} +{{- end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index de3f121..0372f1d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@

    {{ .Title | markdownify }}

    {{ with .Params.author }}

    {{ . }}

    {{ end }} -{{ if (gt .Params.date 0) }}

    {{ .Date.Format "2006/01/02" }}

    {{ end }} +{{ if (gt .Params.date 0) }}

    {{ .Date.Format "2006-01-02" }}

    {{ end }}
    -- cgit 1.4.1