refinement to lastmod display
This commit is contained in:
+1
-1
@@ -409,7 +409,7 @@ var AuthorPage = `<html>
|
|||||||
|
|
||||||
<p>Edit content:</p>
|
<p>Edit content:</p>
|
||||||
<table>{{ range .Content }}
|
<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 }}
|
{{- end }}
|
||||||
</table>
|
</table>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user