From: Noah Campbell Date: Fri, 13 Sep 2013 22:06:37 +0000 (-0700) Subject: Initialize HTMLRedirectAlias before ShowPlan() X-Git-Tag: v0.9~102 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=172ff5ea;p=brevno-suite%2Fhugo Initialize HTMLRedirectAlias before ShowPlan() Without it, no alias information is generated when running --check --- diff --git a/hugolib/site.go b/hugolib/site.go index 7c86d412..b3a3a765 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -116,6 +116,9 @@ func (s *Site) Build() (err error) { func (s *Site) Analyze() { s.Process() s.initTarget() + s.Alias = &target.HTMLRedirectAlias{ + PublishDir: s.absPublishDir(), + } s.ShowPlan(os.Stdout) }