hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 172ff5ea7a13792998e543c6617fd2c4f0600731
parent d45fb72f675997d11406bce82919f1dc50414d68
Author: Noah Campbell <noahcampbell@gmail.com>
Date:   Fri, 13 Sep 2013 15:06:37 -0700

Initialize HTMLRedirectAlias before ShowPlan()

Without it, no alias information is generated when running --check

Diffstat:
Mhugolib/site.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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)
 }