shithub: hugo

Download patch

ref: 00d632153aa4b24799b4b3c16f684533cca0aea5
parent: f1da5a15a37666ee59350d6600a8c14c1383f5bc
author: Torbjörn Lönnemark <[email protected]>
date: Sat May 6 23:49:12 EDT 2017

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.

--- a/docs/content/templates/rss.md
+++ b/docs/content/templates/rss.md
@@ -113,8 +113,7 @@
 
 ~~~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 }}
 ~~~