refinement to lastmod display

This commit is contained in:
2017-07-04 22:47:09 -07:00
parent ae246fa466
commit 629152ba52
+1 -1
View File
@@ -409,7 +409,7 @@ var AuthorPage = `<html>
<p>Edit content:</p>
<table>{{ range .Content }}
<tr><td><a href="/hugo/edit/{{ .Path }}">{{ .Title }}</a></td><td>{{ .Date.Format $timeFormat }} (last modified {{ .Lastmod.Format $timeFormat }})</td></tr>
<tr><td><a href="/hugo/edit/{{ .Path }}">{{ .Title }}</a></td><td>{{ .Date.Format $timeFormat }}{{ if not (.Lastmod.Equal .Date) }} (last modified {{.Lastmod.Format $timeFormat }}){{end}}</td></tr>
{{- end }}
</table>
</body>