diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-10-14 10:30:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-14 10:30:09 +0300 |
commit | 46cafdbaca13866f32db04c0cc28374e30ec5914 (patch) | |
tree | 53214c90afac3e263e61d3c853a4a37a53c049b0 /examples | |
parent | 653e6856ea1cfc60cc16733807d23b302dbe4bd5 (diff) |
examples: Replace .RSSLink
Fixes #6037
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blog/layouts/partials/header.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/blog/layouts/partials/header.html b/examples/blog/layouts/partials/header.html index 24500a483..5863e59ec 100644 --- 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> |