diff options
author | breadcat | 2020-06-28 12:19:24 +0100 |
---|---|---|
committer | breadcat | 2020-06-28 12:19:24 +0100 |
commit | 960415ba44701c4f1282ade32271e47a4dfc2b8f (patch) | |
tree | fa307d228921e5ef0d86d3dc35eb7b15630f8a32 /themes/Brine/layouts/_default | |
parent | f747f3d4faba5a0e1f274801f767decc858dfacd (diff) | |
download | blog.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/Brine/layouts/_default')
-rw-r--r-- | themes/Brine/layouts/_default/list.html | 2 |
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 }} |