Update icons, hide page title

This commit is contained in:
Christoph Hagen
2024-12-26 15:01:01 +01:00
parent 1e4682dad1
commit 922ba4ebe7
23 changed files with 290 additions and 53 deletions

View File

@@ -34,6 +34,8 @@ final class Content: ObservableObject {
@Published
private(set) var isGeneratingWebsite = false
private(set) var shouldGenerateWebsite = false
init(settings: Settings,
posts: [Post],
pages: [Page],
@@ -84,6 +86,10 @@ final class Content: ObservableObject {
self.isGeneratingWebsite = isGenerating
}
func set(shouldGenerate: Bool) {
self.shouldGenerateWebsite = shouldGenerate
}
func add(_ file: FileResource) {
// TODO: Insert at correct index?
files.insert(file, at: 0)