diff options
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> |