From 024c52500db6b70a009d9e6bb3a600058b10be0b Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Mon, 17 Jul 2017 15:17:52 -0500 Subject: ISO8601 date format, swap author and date in the list, and add a slash after the author name --- layouts/_default/list.html | 4 ++-- layouts/partials/header.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cad7dc9..4016581 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -16,8 +16,8 @@

{{ .Title }}

- {{ .Date.Format "2006/01/02" }} - {{ with .Params.author }}{{ . }}{{ end }} + {{ with .Params.author }}{{ . }} / {{ end }} + {{ .Date.Format "2006-01-02" }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7b4a004..0a79efc 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -16,7 +16,7 @@
{{ if .IsPage }} {{ (default "Back to Home" .Site.Params.text.back) | safeHTML }} - {{ if .Params.date }}{{ .Date.Format "2006/01/02" }}{{ end }} + {{ if .Params.date }}{{ .Date.Format "2006-01-02" }}{{ end }} {{ if .File.Path }} {{ $RmdFile := (print .File.BaseFileName ".Rmd") }} {{ if (where (readDir (print "content/" .File.Dir)) "Name" $RmdFile) }} @@ -30,7 +30,7 @@ {{ end }} {{ else }} {{ $.Scratch.Get "Title" }} - {{ now.Format "2006/01/02" }} + {{ now.Format "2006-01-02" }} {{ $paginator := .Paginate (where .Data.Pages "Section" "!=" "") }} {{ with $paginator }}{{ if .TotalPages }}{{ .PageNumber }} / {{ .TotalPages }}{{ end }}{{ end }} {{ end }} -- cgit v1.2.3