mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
@@ -738,6 +738,11 @@ func (s *SiteInfo) Sites() page.Sites {
|
||||
return s.s.h.siteInfos()
|
||||
}
|
||||
|
||||
// Current returns the currently rendered Site.
|
||||
func (s *SiteInfo) Current() page.Site {
|
||||
return s.s.h.currentSite.Info
|
||||
}
|
||||
|
||||
func (s *SiteInfo) String() string {
|
||||
return fmt.Sprintf("Site(%q)", s.title)
|
||||
}
|
||||
|
Reference in New Issue
Block a user