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

github.com/st-wong/hugo-spectre-pixel-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorst-wong <shintatt.wong@gmail.com>2019-10-03 08:13:45 +0300
committerst-wong <shintatt.wong@gmail.com>2019-10-03 08:13:45 +0300
commit551270a94a701eaea3b066e95f8e4fe8a50ff149 (patch)
treed084484cd00f59b7362e6e3b2f8b27d60fb8c7ae
parentbf761443b5202ca40e62fe74eb27b17665965540 (diff)
Update RSS link code
-rw-r--r--layouts/partials/head.html2
-rw-r--r--layouts/partials/nav.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 4e526f6..7759e6f 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -18,7 +18,7 @@
{{ end }}
{{ if .Site.Params.enableRSS }}
- <link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+ <link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ template "_internal/google_analytics.html" . }}
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 04ebdc5..c95d611 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -13,7 +13,7 @@
{{ end }}
{{ if .Site.Params.enableRSS }}
- <a class="btn btn-accent" href="{{ .Site.RSSLink }}" target="_blank"><i class="fas fa-rss fa-lg"></i></a>
+ <a class="btn btn-accent" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" target="_blank"><i class="fas fa-rss fa-lg"></i></a>
{{ end }}
</section>
</nav>