From 1f4059aba7a7c9f65c36090f1a3c217c87a32fdf Mon Sep 17 00:00:00 2001 From: Cody Clark Date: Mon, 6 Jul 2020 21:25:26 -0400 Subject: [PATCH] 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. --- layouts/partials/footer/links-feed.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer/links-feed.html b/layouts/partials/footer/links-feed.html index 398f451..8d1e4af 100644 --- a/layouts/partials/footer/links-feed.html +++ b/layouts/partials/footer/links-feed.html @@ -2,7 +2,7 @@ {{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }} {{ $exclude := slice "tags" "series" "categories" }} {{ if not (in $exclude .Type) }} - + {{ partial "svgs/etc/rss.svg" (dict "width" 32 "height" 32) }} {{ else }} @@ -11,4 +11,4 @@ {{ end }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }}