diff --git a/content/templates/rss.md b/content/templates/rss.md index 32c8f349b..d390b4306 100644 --- a/content/templates/rss.md +++ b/content/templates/rss.md @@ -58,24 +58,29 @@ If the following values are specified in the site’s config file (`config.toml` [author] name = "My Name Here" + email = "sample@domain.tld" +### Limiting the Number of Items + +By default, the RSS feed is limited to **15** items. +You may override the default by using the `rssLimit` [site configuration variable](/overview/configuration/). ## The Embedded rss.xml This is the default RSS template that ships with Hugo. It adheres to the [RSS 2.0 Specification][RSS 2.0]. - {{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} - Recent content {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }} + Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }} Hugo -- gohugo.io{{ with .Site.LanguageCode }} {{.}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }} {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }} {{.}}{{end}}{{ if not .Date.IsZero }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} - - {{ range first 15 .Data.Pages }} + + {{ range .Data.Pages }} {{ .Title }} {{ .Permalink }}