mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add more information to the siteInfo (and configuration options) for better RSS generation.
This commit is contained in:
parent
93bcddebb3
commit
bb9bcdcf30
1 changed files with 22 additions and 14 deletions
|
@ -72,15 +72,19 @@ type Site struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type SiteInfo struct {
|
type SiteInfo struct {
|
||||||
BaseUrl template.URL
|
BaseUrl template.URL
|
||||||
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
|
||||||
ConfigGet func(key string) interface{}
|
AuthorEmail string
|
||||||
Permalinks PermalinkOverrides
|
LanguageCode string
|
||||||
Params map[string]interface{}
|
Copyright string
|
||||||
|
LastChange time.Time
|
||||||
|
ConfigGet func(key string) interface{}
|
||||||
|
Permalinks PermalinkOverrides
|
||||||
|
Params map[string]interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
type runmode struct {
|
type runmode struct {
|
||||||
|
@ -228,11 +232,15 @@ 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"),
|
||||||
Recent: &s.Pages,
|
Author: viper.GetString("author"),
|
||||||
Params: params,
|
AuthorEmail: viper.GetString("authoremail"),
|
||||||
Permalinks: permalinks,
|
LanguageCode: viper.GetString("languagecode"),
|
||||||
|
Copyright: viper.GetString("copyright"),
|
||||||
|
Recent: &s.Pages,
|
||||||
|
Params: params,
|
||||||
|
Permalinks: permalinks,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue