Print draft pages

This commit is contained in:
Christoph Hagen
2022-08-31 09:02:40 +02:00
parent 1537aaab01
commit 4dc56e5dfe
3 changed files with 26 additions and 4 deletions

View File

@ -49,7 +49,9 @@ struct PageGenerator {
}
let url = files.urlInOutputFolder(path)
if pageContent == nil {
if page.state == .draft {
files.isDraft(path: page.path)
} else if pageContent == nil, page.state != .hidden {
files.isEmpty(page: path)
}
guard factory.page.generate(content, to: url) else {