mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05: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:
parent
f1da5a15a3
commit
00d632153a
1 changed files with 1 additions and 2 deletions
|
@ -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 }}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue