diff options
-rw-r--r-- | layouts/partials/head.html | 4 |
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 |