mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
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:
committed by
digitalcraftsman
parent
f1da5a15a3
commit
00d632153a
@@ -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 }}
|
||||
~~~
|
||||
|
||||
|
Reference in New Issue
Block a user