Generate draft pages

This commit is contained in:
Christoph Hagen 2022-08-29 13:35:47 +02:00
parent 42ae757414
commit 5090cc8d8b

View File

@ -20,9 +20,6 @@ struct PageGenerator {
guard !page.isExternalPage else { guard !page.isExternalPage else {
return return
} }
guard page.state != .draft else {
return
}
let path = page.fullPageUrl(for: language) let path = page.fullPageUrl(for: language)
let inputContentPath = page.path + "/\(language).md" let inputContentPath = page.path + "/\(language).md"
let metadata = page.localized(for: language) let metadata = page.localized(for: language)