From 65c2f3fd426a17007fabb33c428aa4cefdd10e49 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 3a6f316eed..9c5bc54d58 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 }}