diff options
-rw-r--r-- | layouts/partials/head.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e0f90d9..f47062b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -28,8 +28,7 @@ <!-- Custom stylesheet - for your changes --> <link href="{{ "css/custom.css" | absURL }}" rel="stylesheet"> <link rel="shortcut icon" href="{{ "img/favicon.png" | absURL }}"> -{{ if .RSSLink }} - <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" /> +{{ with .OutputFormats.Get "RSS" }} + {{ printf `<link href="%s" rel="%s" type="%s" title="%s" />` .Permalink .Rel .MediaType.Type $.Site.Title | safeHTML }} {{ end }} {{ template "_internal/google_analytics_async.html" . }} |