refinement to lastmod display

pull/8/head
Stephen Searles 7 years ago
parent ae246fa466
commit 629152ba52
  1. 2
      templates.go

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

Loading…
Cancel
Save