Rename 'date' partial to 'byline'

This commit is contained in:
Christoffer Müller Madsen 2017-08-06 03:37:56 +02:00
parent cf3d0db173
commit 4681a4f7c8
3 changed files with 7 additions and 4 deletions

View File

@ -1,6 +1,7 @@
{{ partial "header.html" . }}
{{ partial "nav.html" . }}
<h1>{{ .Title }}</h1>
{{ partial "date.html" . }}
{{ partial "byline.html" . }}
{{ .Content }}
{{ partial "footer.html" . }}

View File

@ -2,5 +2,5 @@
{{ partial "nav.html" . }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ partial "date.html" . }}
{{ partial "byline.html" . }}
{{ partial "footer.html" . }}

View File

@ -1,8 +1,10 @@
<i>
{{ if ne .Lastmod .Date}}Originally created {{end}}
{{ if ne .Lastmod .Date}}
Originally created
{{ end }}
{{ .Date.Format "January 2, 2006" }}
</i>
{{ if ne .Lastmod .Date}}
<br><i>Updated {{ .Lastmod.Format "January 2, 2006" }}</i>
{{end}}
{{ end }}