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

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-10-14 10:30:09 +0300
committerGitHub <noreply@github.com>2019-10-14 10:30:09 +0300
commit46cafdbaca13866f32db04c0cc28374e30ec5914 (patch)
tree53214c90afac3e263e61d3c853a4a37a53c049b0 /examples
parent653e6856ea1cfc60cc16733807d23b302dbe4bd5 (diff)
examples: Replace .RSSLink
Fixes #6037
Diffstat (limited to 'examples')
-rw-r--r--examples/blog/layouts/partials/header.html4
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>