ref: 46cafdbaca13866f32db04c0cc28374e30ec5914
parent: 653e6856ea1cfc60cc16733807d23b302dbe4bd5
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Mon Oct 14 05:30:09 EDT 2019
examples: Replace .RSSLink Fixes #6037
--- 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>