mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
Add more information to the siteInfo (and configuration options) for better RSS generation.
This commit is contained in:
@@ -76,8 +76,12 @@ type SiteInfo struct {
|
|||||||
Taxonomies TaxonomyList
|
Taxonomies TaxonomyList
|
||||||
Indexes *TaxonomyList // legacy, should be identical to Taxonomies
|
Indexes *TaxonomyList // legacy, should be identical to Taxonomies
|
||||||
Recent *Pages
|
Recent *Pages
|
||||||
LastChange time.Time
|
|
||||||
Title string
|
Title string
|
||||||
|
Author string
|
||||||
|
AuthorEmail string
|
||||||
|
LanguageCode string
|
||||||
|
Copyright string
|
||||||
|
LastChange time.Time
|
||||||
ConfigGet func(key string) interface{}
|
ConfigGet func(key string) interface{}
|
||||||
Permalinks PermalinkOverrides
|
Permalinks PermalinkOverrides
|
||||||
Params map[string]interface{}
|
Params map[string]interface{}
|
||||||
@@ -230,6 +234,10 @@ func (s *Site) initializeSiteInfo() {
|
|||||||
s.Info = SiteInfo{
|
s.Info = SiteInfo{
|
||||||
BaseUrl: template.URL(helpers.SanitizeUrl(viper.GetString("BaseUrl"))),
|
BaseUrl: template.URL(helpers.SanitizeUrl(viper.GetString("BaseUrl"))),
|
||||||
Title: viper.GetString("Title"),
|
Title: viper.GetString("Title"),
|
||||||
|
Author: viper.GetString("author"),
|
||||||
|
AuthorEmail: viper.GetString("authoremail"),
|
||||||
|
LanguageCode: viper.GetString("languagecode"),
|
||||||
|
Copyright: viper.GetString("copyright"),
|
||||||
Recent: &s.Pages,
|
Recent: &s.Pages,
|
||||||
Params: params,
|
Params: params,
|
||||||
Permalinks: permalinks,
|
Permalinks: permalinks,
|
||||||
|
Reference in New Issue
Block a user