From dceac236568b7a30a17b856ddd3ad3d543e4297c Mon Sep 17 00:00:00 2001
From: breadcat
Date: Tue, 10 Nov 2020 16:39:17 +0000
Subject: 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.
---
themes/Brine/layouts/_default/list.html | 14 +++++++++++---
1 file 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" }}
{{ .Title }}
- {{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }}
- - {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read
{{ end }}
-
{{ partial "pagination.html" $ }}{{ end }}
\ No newline at end of file
+
+{{ if .IsHome }}
+ {{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Section" "posts") }}{{ range $paginator.Pages }}
+ - {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read
{{ end }}
+{{ else }}
+ {{ range .Pages.ByDate.Reverse }}
+ - {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }} updated{{ end }}, {{ .ReadingTime }} min read
+ {{ end }}
+{{ end }}
+
{{ partial "pagination.html" $ }}{{ end }}
+
--
cgit v1.2.3