diff options
author | Ana Paula Gomes <apgomes88@gmail.com> | 2019-08-24 20:05:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-24 20:05:32 +0300 |
commit | 7a84a22450a9f464f4a8812b25f66442c5d7a267 (patch) | |
tree | 72db5784836a8ef5d37a01aa67eebdf091a51f0e | |
parent | 9a9dc3fd4e9a144f0b17cb9d703890c328aa31c6 (diff) |
Fix warning ".RSSLink is deprecated"
-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" . }} |