shithub: hugo

Download patch

ref: 172ff5ea7a13792998e543c6617fd2c4f0600731
parent: d45fb72f675997d11406bce82919f1dc50414d68
author: Noah Campbell <[email protected]>
date: Fri Sep 13 11:06:37 EDT 2013

Initialize HTMLRedirectAlias before ShowPlan()

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

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -116,6 +116,9 @@
 func (s *Site) Analyze() {
 	s.Process()
 	s.initTarget()
+	s.Alias = &target.HTMLRedirectAlias{
+		PublishDir: s.absPublishDir(),
+	}
 	s.ShowPlan(os.Stdout)
 }