diff options
-rw-r--r-- | layouts/partials/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index abe18af..3011c1b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -36,8 +36,8 @@ <link rel="stylesheet" href="{{ "css/" | absURL }}{{ . }}"> {{ end }} -{{ if .RSSLink }} -<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> +{{ with .OutputFormats.Get "RSS" }} +<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" /> {{ end }} {{/* https://gohugo.io/templates/internal/ */}} |