summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorbjörn Lönnemark <tobbez@ryara.net>2017-05-07 03:49:12 +0200
committerdigitalcraftsman <digitalcraftsman@users.noreply.github.com>2017-06-09 13:12:09 +0200
commit00d632153aa4b24799b4b3c16f684533cca0aea5 (patch)
treedad8f30e8c8880a2478ffeca0ee631a7c1560255
parentf1da5a15a37666ee59350d6600a8c14c1383f5bc (diff)
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.
-rw-r--r--docs/content/templates/rss.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/content/templates/rss.md b/docs/content/templates/rss.md
index fe445469a..d14b574b4 100644
--- a/docs/content/templates/rss.md
+++ b/docs/content/templates/rss.md
@@ -113,8 +113,7 @@ In your `header.html` template, you can specify your RSS feed in your `<head></h
~~~html
{{ if .RSSLink }}
- <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
- <link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
+ <link href="{{ .RSSLink }}" rel="alternate feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
~~~