mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Adding support for recent content.
This commit is contained in:
@@ -206,7 +206,12 @@ func (s *Site) initialize() {
|
|||||||
|
|
||||||
filepath.Walk(s.Config.GetAbsPath(s.Config.ContentDir), walker)
|
filepath.Walk(s.Config.GetAbsPath(s.Config.ContentDir), walker)
|
||||||
|
|
||||||
s.Info = SiteInfo{BaseUrl: template.URL(s.Config.BaseUrl), Title: s.Config.Title, Config: &s.Config}
|
s.Info = SiteInfo{
|
||||||
|
BaseUrl: template.URL(s.Config.BaseUrl),
|
||||||
|
Title: s.Config.Title,
|
||||||
|
Recent: &s.Pages,
|
||||||
|
Config: &s.Config,
|
||||||
|
}
|
||||||
|
|
||||||
s.Shortcodes = make(map[string]ShortcodeFunc)
|
s.Shortcodes = make(map[string]ShortcodeFunc)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user