Improve storage

This commit is contained in:
Christoph Hagen
2024-12-19 16:25:05 +01:00
parent 9c828ff80a
commit 41887a1401
30 changed files with 926 additions and 831 deletions

View File

@ -82,17 +82,8 @@ struct PageDetailView: View {
}
private func generate() {
guard let url = content.storage.outputPath else {
print("Invalid output path")
return
}
guard FileManager.default.fileExists(atPath: url.path) else {
print("Missing output folder")
return
}
DispatchQueue.global(qos: .userInitiated).async {
let success = content.generatePage(page)
let success = content.generateFeed()
DispatchQueue.main.async {
didGenerateWebsite = success
}