mirror of
https://github.com/gohugoio/hugo.git
synced 2025-01-26 09:23:51 +00: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() {
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue