Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-17 10:18:55 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-11-19 14:00:25 +0300
commit65f803e1fa42fc1ca0b9ddac09f61a538b802841 (patch)
treee505dbdeae6f6fda536b771010b68d9352348b2e /docs
parent29fda0e6830cd62667fb2e12627b8b9874bfafdf (diff)
docs: Rename RSSlink to RSSLink
The former will be deprecated.
Diffstat (limited to 'docs')
-rw-r--r--docs/content/templates/homepage.md2
-rw-r--r--docs/content/templates/partials.md2
-rw-r--r--docs/content/templates/rss.md8
3 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/templates/homepage.md b/docs/content/templates/homepage.md
index 81c5eb598..21c832c51 100644
--- a/docs/content/templates/homepage.md
+++ b/docs/content/templates/homepage.md
@@ -60,7 +60,7 @@ It makes use of [partial templates](/templates/partials/) and uses a similar app
<base href="{{ .Site.BaseURL }}">
<title>{{ .Site.Title }}</title>
<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" . }}
</head>
diff --git a/docs/content/templates/partials.md b/docs/content/templates/partials.md
index 22b5f493f..77cab478e 100644
--- a/docs/content/templates/partials.md
+++ b/docs/content/templates/partials.md
@@ -65,7 +65,7 @@ This header template is used for [spf13.com](http://spf13.com/):
<base href="{{ .Site.BaseURL }}">
<title> {{ .Title }} : spf13.com </title>
<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" . }}
</head>
diff --git a/docs/content/templates/rss.md b/docs/content/templates/rss.md
index 70c3c7704..e7bec814a 100644
--- a/docs/content/templates/rss.md
+++ b/docs/content/templates/rss.md
@@ -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:
~~~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 }}" />
+{{ 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 }}" />
{{ end }}
~~~
... 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"`.