Removes extra slash (/)
The current link for the RSS feed link on the [Posts page](https://themes.gohugo.io//theme/hugo-theme-zzo/en/posts) renders as `/theme/hugo-theme-zzo/en/posts**//**index.xml`. This was causing 404 errors when serving from a Google Cloud Storage bucket. This PR removes that extra slash (/) and fixed those errors for me on all pages with an RSS feed.
This commit is contained in:
parent
6757d0f3b1
commit
1f4059aba7
|
@ -2,7 +2,7 @@
|
||||||
{{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }}
|
{{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }}
|
||||||
{{ $exclude := slice "tags" "series" "categories" }}
|
{{ $exclude := slice "tags" "series" "categories" }}
|
||||||
{{ if not (in $exclude .Type) }}
|
{{ if not (in $exclude .Type) }}
|
||||||
<a href="{{ if eq hugo.Version "0.65.2" }}{{ .CurrentSection.FirstSection.Permalink }}{{ else }}{{ .FirstSection.Permalink }}{{ end }}/index.xml" type="application/rss+xml" title="RSS" aria-label="RSS Feed Link">
|
<a href="{{ if eq hugo.Version "0.65.2" }}{{ .CurrentSection.FirstSection.Permalink }}{{ else }}{{ .FirstSection.Permalink }}{{ end }}index.xml" type="application/rss+xml" title="RSS" aria-label="RSS Feed Link">
|
||||||
{{ partial "svgs/etc/rss.svg" (dict "width" 32 "height" 32) }}
|
{{ partial "svgs/etc/rss.svg" (dict "width" 32 "height" 32) }}
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
@ -11,4 +11,4 @@
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue