diff options
author | Jesse <jwhitehouse@airpost.net> | 2019-09-28 15:49:03 +0300 |
---|---|---|
committer | Bud Parr <budparr@gmail.com> | 2019-09-28 15:49:03 +0300 |
commit | 287b3ff5e9ee1b50d573fbc75657f6526ddaeb88 (patch) | |
tree | a37c11d93b1531d00443c4716f21592852c89515 | |
parent | 1abef69dc49cf1851d12a46cb32e09c45029f0a9 (diff) |
Fixes #212. (#213)2.53
-rwxr-xr-x | 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" . -}} |