mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
docs: Rename RSSlink to RSSLink
The former will be deprecated.
This commit is contained in:
parent
29fda0e683
commit
65f803e1fa
3 changed files with 6 additions and 6 deletions
|
@ -60,7 +60,7 @@ It makes use of [partial templates](/templates/partials/) and uses a similar app
|
||||||
<base href="{{ .Site.BaseURL }}">
|
<base href="{{ .Site.BaseURL }}">
|
||||||
<title>{{ .Site.Title }}</title>
|
<title>{{ .Site.Title }}</title>
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
|
|
||||||
{{ partial "head_includes.html" . }}
|
{{ partial "head_includes.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -65,7 +65,7 @@ This header template is used for [spf13.com](http://spf13.com/):
|
||||||
<base href="{{ .Site.BaseURL }}">
|
<base href="{{ .Site.BaseURL }}">
|
||||||
<title> {{ .Title }} : spf13.com </title>
|
<title> {{ .Title }} : spf13.com </title>
|
||||||
<link rel="canonical" href="{{ .Permalink }}">
|
<link rel="canonical" href="{{ .Permalink }}">
|
||||||
{{ if .RSSlink }}<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }}
|
{{ if .RSSLink }}<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Title }}" />{{ end }}
|
||||||
|
|
||||||
{{ partial "head_includes.html" . }}
|
{{ partial "head_includes.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -99,15 +99,15 @@ This is the default RSS template that ships with Hugo. It adheres to the [RSS 2.
|
||||||
In your `header.html` template, you can specify your RSS feed in your `<head></head>` tag like this:
|
In your `header.html` template, you can specify your RSS feed in your `<head></head>` tag like this:
|
||||||
|
|
||||||
~~~html
|
~~~html
|
||||||
{{ if .RSSlink }}
|
{{ if .RSSLink }}
|
||||||
<link href="{{ .RSSlink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
<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="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
... with the autodiscovery link specified by the line with `rel="alternate"`.
|
... with the autodiscovery link specified by the line with `rel="alternate"`.
|
||||||
|
|
||||||
The `.RSSlink` will render the appropriate RSS feed URL for the section, whether it's everything, posts in a section, or a taxonomy.
|
The `.RSSLink` will render the appropriate RSS feed URL for the section, whether it's everything, posts in a section, or a taxonomy.
|
||||||
|
|
||||||
**N.b.**, if you reference your RSS link, be sure to specify the mime type with `type="application/rss+xml"`.
|
**N.b.**, if you reference your RSS link, be sure to specify the mime type with `type="application/rss+xml"`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue