diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md index c8f668b55f9..390a26c12d3 100644 --- a/docs/content/templates/variables.md +++ b/docs/content/templates/variables.md @@ -111,6 +111,7 @@ The last two can also be reversed: **.Data.Terms.Alphabetical.Reverse**, **.Data Also available is `.Site` which has the following: **.Site.BaseURL** The base URL for the site as defined in the site configuration file.
+**.Site.RSSLink** The URL for the site RSS.
**.Site.Taxonomies** The [taxonomies](/taxonomies/usage/) for the entire site. Replaces the now-obsolete `.Site.Indexes` since v0.11.
**.Site.Pages** Array of all content ordered by Date, newest first. Replaces the now-deprecated `.Site.Recent` starting v0.13.
**.Site.Params** A container holding the values from the `params` section of your site configuration file. For example, a TOML config file might look like this: diff --git a/hugolib/site.go b/hugolib/site.go index 3fe0284aff3..b125d258ed0 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -103,6 +103,7 @@ type SiteInfo struct { Menus *Menus Hugo *HugoInfo Title string + RSSLink string Author map[string]interface{} LanguageCode string DisqusShortname string @@ -458,6 +459,7 @@ func (s *Site) initializeSiteInfo() { Copyright: viper.GetString("copyright"), DisqusShortname: viper.GetString("DisqusShortname"), GoogleAnalytics: viper.GetString("GoogleAnalytics"), + RSSLink: s.permalinkStr(viper.GetString("RSSUri")), BuildDrafts: viper.GetBool("BuildDrafts"), canonifyURLs: viper.GetBool("CanonifyURLs"), preserveTaxonomyNames: viper.GetBool("PreserveTaxonomyNames"),