Fix lazy publishing with publishResources=false

Fixes #6914
This commit is contained in:
Bjørn Erik Pedersen
2020-02-19 17:37:20 +01:00
parent dce210ab56
commit 9bdedb251c
3 changed files with 34 additions and 1 deletions

View File

@@ -258,7 +258,9 @@ func (p *pageState) sortResources() {
return page.DefaultPageSort(p1, p2)
}
return ri.RelPermalink() < rj.RelPermalink()
// Make sure not to use RelPermalink or any of the other methods that
// trigger lazy publishing.
return ri.Name() < rj.Name()
})
}