remove edited timestamp from stats if empty

This commit is contained in:
Christian Müller
2017-09-18 22:24:21 +02:00
parent 59aeab60c1
commit d838d0d3c9
3 changed files with 6 additions and 5 deletions
+2
View File
@@ -2,7 +2,9 @@
<h2>Statistics</h2>
<table>
<tr><td>Published</td><td>{{.Published.Format "Jan 02, 2006 15:04:05 UTC"}}</td></tr>
{{if not .Edited.IsZero}}
<tr><td>Edited</td><td>{{.Edited.Format "Jan 02, 2006 15:04:05 UTC"}}</td></tr>
{{end}}
<tr><td>Views</td><td>{{.Views}}</td></tr>
</table>
{{end}}