From 8d1e45a42adedfe2d7ee8c1aea38fb701807fdc7 Mon Sep 17 00:00:00 2001 From: Alexander Zhang Date: Sun, 23 Apr 2023 07:17:46 -0700 Subject: [PATCH] Fix RSS link for paginated list pages (#1192) The link was previously hard-coded to index.html, which doesn't work on paginated list pages because it would go to something like /section/pages/2/index.html instead of /section/index.html. --- layouts/_default/list.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 3a6f316e..9c5bc54d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,8 @@

{{ .Title }} {{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }} - + {{- with .OutputFormats.Get "rss" }} + @@ -19,6 +20,7 @@ {{- end }} + {{- end }}

{{- if .Description }}