commit 46cafdbaca13866f32db04c0cc28374e30ec5914
parent 653e6856ea1cfc60cc16733807d23b302dbe4bd5
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Mon, 14 Oct 2019 09:30:09 +0200
examples: Replace .RSSLink
Fixes #6037
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html
@@ -6,5 +6,7 @@
<title>{{ .Title }} - {{ .Site.BaseURL }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "header.includes.html" . }}
- {{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />{{ end }}
+ {{ with .OutputFormats.Get "RSS" -}}
+ {{ printf "<link href=%q rel=\"alternate\" type=%q title=%q />" .Permalink .MediaType .Title | safeHTML }}
+ {{- end }}
</head>