Initialize HTMLRedirectAlias before ShowPlan()
authorNoah Campbell <noahcampbell@gmail.com>
Fri, 13 Sep 2013 22:06:37 +0000 (15:06 -0700)
committerNoah Campbell <noahcampbell@gmail.com>
Fri, 13 Sep 2013 22:06:37 +0000 (15:06 -0700)
Without it, no alias information is generated when running --check

hugolib/site.go

index 7c86d4126ea7a0e1e75c9919bda7fce16c98bae5..b3a3a7659000b96d552d03f9cb53012672c5316c 100644 (file)
@@ -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)
 }