docs: Use single link element for RSS in example

The rel attribute supports specifying a set of values, not only a single
one.

Using two link elements can also cause browsers to show the feed twice
in menus.
This commit is contained in:
Torbjörn Lönnemark 2017-05-07 03:49:12 +02:00 committed by digitalcraftsman
parent f1da5a15a3
commit 00d632153a

View file

@ -113,8 +113,7 @@ In your `header.html` template, you can specify your RSS feed in your `<head></h
~~~html ~~~html
{{ if .RSSLink }} {{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> <link href="{{ .RSSLink }}" rel="alternate feed" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }} {{ end }}
~~~ ~~~