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 }}