Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Clark <me@codyjtclark.com>2020-07-07 04:25:26 +0300
committerGitHub <noreply@github.com>2020-07-07 04:25:26 +0300
commit1f4059aba7a7c9f65c36090f1a3c217c87a32fdf (patch)
treeac796879f3247c414721fe88ed537fe8b7443561 /layouts
parent6757d0f3b1f5a08aff8a4592720e4c3e38b91dc2 (diff)
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.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer/links-feed.html4
1 files 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) }}
- <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) }}
</a>
{{ else }}
@@ -11,4 +11,4 @@
</a>
{{ end }}
{{ end }}
-{{ end }} \ No newline at end of file
+{{ end }}