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 "header.html" . }}
{{ partial "nav.html" . }} {{ partial "nav.html" . }}
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
{{ partial "date.html" . }} {{ partial "byline.html" . }}
{{ .Content }} {{ .Content }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}

View File

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

View File

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