Show empty pages
This commit is contained in:
@ -49,10 +49,13 @@ struct PageGenerator {
|
||||
}
|
||||
|
||||
let url = files.urlInOutputFolder(path)
|
||||
if pageContent == nil {
|
||||
files.isEmpty(page: path)
|
||||
}
|
||||
guard factory.page.generate(content, to: url) else {
|
||||
return
|
||||
}
|
||||
log.add(info: "Generated \(pageContent == nil ? "empty page " : "")\(path)", source: page.path)
|
||||
log.add(info: "Page generated", source: path)
|
||||
}
|
||||
|
||||
private func makeContent(page: Element, language: String, path: String) -> (content: String, includesCode: Bool)? {
|
||||
|
Reference in New Issue
Block a user