mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 02:16:09 +00:00
Initialize HTMLRedirectAlias before ShowPlan()
Without it, no alias information is generated when running --check
This commit is contained in:
1 parent
d45fb72f67
commit
172ff5ea7a
1 file changed
+3
@@ -116,6 +116,9 @@ func (s *Site) Build() (err error) {
|
|||||||
func (s *Site) Analyze() {
|
func (s *Site) Analyze() {
|
||||||
s.Process()
|
s.Process()
|
||||||
s.initTarget()
|
s.initTarget()
|
||||||
|
s.Alias = &target.HTMLRedirectAlias{
|
||||||
|
PublishDir: s.absPublishDir(),
|
||||||
|
}
|
||||||
s.ShowPlan(os.Stdout)
|
s.ShowPlan(os.Stdout)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user