mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-21 18:11:37 +01:00
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.
This commit is contained in:
parent
a34784c3ed
commit
8d1e45a42a
@ -10,7 +10,8 @@
|
|||||||
<h1>
|
<h1>
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
{{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }}
|
{{- if and (or (eq .Kind `term`) (eq .Kind `section`)) (.Param "ShowRssButtonInSectionTermList") }}
|
||||||
<a href="index.xml" title="RSS" aria-label="RSS">
|
{{- with .OutputFormats.Get "rss" }}
|
||||||
|
<a href="{{ .RelPermalink }}" title="RSS" aria-label="RSS">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"
|
||||||
stroke-linecap="round" stroke-linejoin="round" height="23">
|
stroke-linecap="round" stroke-linejoin="round" height="23">
|
||||||
<path d="M4 11a9 9 0 0 1 9 9" />
|
<path d="M4 11a9 9 0 0 1 9 9" />
|
||||||
@ -19,6 +20,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
</h1>
|
</h1>
|
||||||
{{- if .Description }}
|
{{- if .Description }}
|
||||||
<div class="post-description">
|
<div class="post-description">
|
||||||
|
Loading…
Reference in New Issue
Block a user