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

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpau1ie <huffton@googlemail.com>2019-10-01 12:48:54 +0300
committerChen Xianmin <xianmin12@gmail.com>2019-10-01 12:48:54 +0300
commitf56d91bddb9a91edf4b6b73ccdb3e90b7bef797e (patch)
tree2b26c5b2ceb7395a01e67a7c195db414bee60f14
parent01e30282588ac972a38026b60af68e5c0981bbd6 (diff)
Fix RSS link (#249)
The RSS link is rendered incorrectly by default into an escaped version. This change corrects that.
-rw-r--r--layouts/partials/head.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 3e9f1ab..00d19f9 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -56,9 +56,7 @@
<!-- Permalink & RSSlink -->
<link rel="canonical" href="{{ .Permalink }}" />
-{{ if .OutputFormats.Get "RSS" -}}
-<link href="{{ .OutputFormats.Get "RSS" }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
-{{ end -}}
+{{ with .OutputFormats.Get "RSS" }}<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />{{ end }}
{{ if .OutputFormats.Get "jsonfeed" }}
<link