mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +00:00
Remove deprecated fields and methods for v0.15
Special thanks to @bep for his guidance and for making sure all of the Hugo themes get updated. Fixes #1172
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
b23b546a30
commit
252ea96d1d
@@ -132,24 +132,6 @@ type SiteInfo struct {
|
||||
// linkedin
|
||||
type SiteSocial map[string]string
|
||||
|
||||
// BaseUrl is deprecated. Will be removed in 0.15.
|
||||
func (s *SiteInfo) BaseUrl() template.URL {
|
||||
helpers.Deprecated("Site", ".BaseUrl", ".BaseURL")
|
||||
return s.BaseURL
|
||||
}
|
||||
|
||||
// Recent is deprecated. Will be removed in 0.15.
|
||||
func (s *SiteInfo) Recent() *Pages {
|
||||
helpers.Deprecated("Site", ".Recent", ".Pages")
|
||||
return s.Pages
|
||||
}
|
||||
|
||||
// Indexes is deprecated. Will be removed in 0.15.
|
||||
func (s *SiteInfo) Indexes() *TaxonomyList {
|
||||
helpers.Deprecated("Site", ".Indexes", ".Taxonomies")
|
||||
return &s.Taxonomies
|
||||
}
|
||||
|
||||
func (s *SiteInfo) GetParam(key string) interface{} {
|
||||
v := s.Params[strings.ToLower(key)]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user