diff options
author | breadcat | 2020-11-10 16:39:17 +0000 |
---|---|---|
committer | breadcat | 2020-11-10 16:39:17 +0000 |
commit | dceac236568b7a30a17b856ddd3ad3d543e4297c (patch) | |
tree | 3bb9ef206428207f338bb388b7ce25ee70972c66 /themes/Brine | |
parent | 6e62237fdbaaf3cbf2e93f110994765b85693ebb (diff) | |
download | blog.minskio.co.uk-dceac236568b7a30a17b856ddd3ad3d543e4297c.tar.gz blog.minskio.co.uk-dceac236568b7a30a17b856ddd3ad3d543e4297c.tar.bz2 blog.minskio.co.uk-dceac236568b7a30a17b856ddd3ad3d543e4297c.zip |
Fix longstanding tags bug
Tag index pages would not be filtered by tag. There's probably a more
efficient way of doing this, but it works for the time being.
Diffstat (limited to 'themes/Brine')
-rw-r--r-- | themes/Brine/layouts/_default/list.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/themes/Brine/layouts/_default/list.html b/themes/Brine/layouts/_default/list.html index 8cc2549..f832443 100644 --- a/themes/Brine/layouts/_default/list.html +++ b/themes/Brine/layouts/_default/list.html @@ -1,4 +1,12 @@ {{ define "main" }} <h1>{{ .Title }}</h1> - <ul>{{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }} - <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 }}
\ No newline at end of file +<ul> +{{ if .IsHome }} + {{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }} + <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 }} +{{ else }} + {{ range .Pages.ByDate.Reverse }} + <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 }} +{{ end }} +</ul>{{ partial "pagination.html" $ }}{{ end }} + |