diff options
author | Michael Blum <me@mblum.me> | 2020-04-12 21:37:47 +0300 |
---|---|---|
committer | Michael Blum <me@mblum.me> | 2020-04-12 21:37:47 +0300 |
commit | 76325f386f1323cd6b9efb57357eadddb1f28818 (patch) | |
tree | f4694d53091e2408317fffb363b2cca7b9a109d8 /layouts | |
parent | d19c44b4db036910e14d3e4650ffe5060e956271 (diff) |
resolve deprecated RSS partial
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index a9ac14c..345f05b 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -13,6 +13,10 @@ <title>{{ .Title }}</title> <link rel="canonical" href="{{ .Permalink }}"> + {{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + {{ partial "includes.html" . }} </head> <body lang="en">
\ No newline at end of file |