diff --git a/hugolib/site.go b/hugolib/site.go index b2eb70cfe..0b052a4f9 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -271,6 +271,12 @@ func (s *Site) BuildSiteMeta() (err error) { return errors.New(fmt.Sprintf("Unable to build site metadata, no pages found in directory %s", s.c.ContentDir)) } s.Info.LastChange = s.Pages[0].Date + + // populate pages with site metadata + for _, p := range s.Pages { + p.Site = s.Info + } + return }