mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
Initialize HTMLRedirectAlias before ShowPlan()
Without it, no alias information is generated when running --check
This commit is contained in:
parent
d45fb72f67
commit
172ff5ea7a
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue