Fix panic on no output formats

A page needs its output formats even if it should not be rendered or its resources should not be published.

Fixes #6924
This commit is contained in:
Bjørn Erik Pedersen
2020-02-21 09:02:07 +01:00
parent 4c2a0de412
commit f460530347
5 changed files with 84 additions and 47 deletions

View File

@@ -39,7 +39,7 @@ type BuildConfig struct {
List bool
// Whether to render it.
Render bool
Render bool
// Whether to publish its resources. These will still be published on demand,
// but enabling this can be useful if the originals (e.g. images) are