blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

commit 960415ba44701c4f1282ade32271e47a4dfc2b8f
parent f747f3d4faba5a0e1f274801f767decc858dfacd
Author: breadcat <peter@minskio.co.uk>
Date:   Sun, 28 Jun 2020 12:19:24 +0100

Display if a page has been updated since posting

Diffstat:
Mthemes/Brine/layouts/_default/list.html | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 }}