Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mikeblum/hugo-now.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Blum <me@mblum.me>2020-04-12 21:37:47 +0300
committerMichael Blum <me@mblum.me>2020-04-12 21:37:47 +0300
commit76325f386f1323cd6b9efb57357eadddb1f28818 (patch)
treef4694d53091e2408317fffb363b2cca7b9a109d8
parentd19c44b4db036910e14d3e4650ffe5060e956271 (diff)
resolve deprecated RSS partial
-rw-r--r--layouts/partials/header.html4
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