diff options
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index d0e6c3018..0579edf6e 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -424,6 +424,10 @@ func (s *SiteInfo) Hugo() hugo.Info { return s.hugoInfo } +// Sites is a convenience method to get all the Hugo sites/languages configured. +func (s *SiteInfo) Sites() SiteInfos { + return s.s.owner.siteInfos() +} func (s *SiteInfo) String() string { return fmt.Sprintf("Site(%q)", s.Title) } |