From 4681a4f7c870cde645a4a561b69adba22678e77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Sun, 6 Aug 2017 03:37:56 +0200 Subject: [PATCH] Rename 'date' partial to 'byline' --- layouts/_default/single.html | 3 ++- layouts/page/single.html | 2 +- layouts/partials/{date.html => byline.html} | 6 ++++-- 3 files changed, 7 insertions(+), 4 deletions(-) rename layouts/partials/{date.html => byline.html} (64%) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 03f2ce2..1d5326e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,7 @@ {{ partial "header.html" . }} {{ partial "nav.html" . }}

{{ .Title }}

-{{ partial "date.html" . }} +{{ partial "byline.html" . }} {{ .Content }} + {{ partial "footer.html" . }} diff --git a/layouts/page/single.html b/layouts/page/single.html index 7a4bc2b..2279250 100644 --- a/layouts/page/single.html +++ b/layouts/page/single.html @@ -2,5 +2,5 @@ {{ partial "nav.html" . }}

{{ .Title }}

{{ .Content }} -{{ partial "date.html" . }} +{{ partial "byline.html" . }} {{ partial "footer.html" . }} diff --git a/layouts/partials/date.html b/layouts/partials/byline.html similarity index 64% rename from layouts/partials/date.html rename to layouts/partials/byline.html index f39ef37..58e8890 100644 --- a/layouts/partials/date.html +++ b/layouts/partials/byline.html @@ -1,8 +1,10 @@ - {{ if ne .Lastmod .Date}}Originally created {{end}} + {{ if ne .Lastmod .Date}} + Originally created + {{ end }} {{ .Date.Format "January 2, 2006" }} {{ if ne .Lastmod .Date}}
Updated {{ .Lastmod.Format "January 2, 2006" }} -{{end}} +{{ end }}