From 287b3ff5e9ee1b50d573fbc75657f6526ddaeb88 Mon Sep 17 00:00:00 2001
From: Jesse <jwhitehouse@airpost.net>
Date: Sat, 28 Sep 2019 12:49:03 +0000
Subject: [PATCH] Fixes #212. (#213)

---
 layouts/_default/baseof.html |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 68d320b..6aaab08 100755
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -28,10 +28,12 @@
     {{ end }}
 
     {{ if .OutputFormats.Get "RSS" }}
-      <link href="{{ .OutputFormats.Get "RSS" }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
-      <link href="{{ .OutputFormats.Get "RSS" }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
+    {{ with .OutputFormats.Get "RSS" }}
+      <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
+      <link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
+      {{ end }}
     {{ end }}
-
+    
     {{/* NOTE: These Hugo Internal Templates can be found starting at https://github.com/spf13/hugo/blob/master/tpl/tplimpl/template_embedded.go#L158 */}}
     {{- template "_internal/opengraph.html" . -}}
     {{- template "_internal/schema.html" . -}}

--
Gitblit v1.10.0