summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorbreadcat2020-06-28 12:19:24 +0100
committerbreadcat2020-06-28 12:19:24 +0100
commit960415ba44701c4f1282ade32271e47a4dfc2b8f (patch)
treefa307d228921e5ef0d86d3dc35eb7b15630f8a32 /themes
parentf747f3d4faba5a0e1f274801f767decc858dfacd (diff)
downloadblog.minskio.co.uk-960415ba44701c4f1282ade32271e47a4dfc2b8f.tar.gz
blog.minskio.co.uk-960415ba44701c4f1282ade32271e47a4dfc2b8f.tar.bz2
blog.minskio.co.uk-960415ba44701c4f1282ade32271e47a4dfc2b8f.zip
Display if a page has been updated since posting
Diffstat (limited to 'themes')
-rw-r--r--themes/Brine/layouts/_default/list.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html
index 2e0dee6..fd2efae 100644
--- a/themes/Brine/layouts/_default/list.html
+++ b/themes/Brine/layouts/_default/list.html
@@ -1,5 +1,5 @@
{{ define "main" }} <h1>{{ .Title }}</h1>
<ul>{{ range $index, $element := .Paginator.Pages }}
- <li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}, {{ .ReadingTime }} min read</span></li>{{ end }}
+ <li><h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3><span>{{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read</span></li>{{ end }}
</ul>
{{ partial "pagination.html" $ }}{{ end }}