diff --git a/CHDataManagement/Model/Content+Generation.swift b/CHDataManagement/Model/Content+Generation.swift index a10a168..b98b608 100644 --- a/CHDataManagement/Model/Content+Generation.swift +++ b/CHDataManagement/Model/Content+Generation.swift @@ -8,6 +8,7 @@ extension Content { self.storage.writeNotification = { [weak self] in self?.results.created(outputFile: $0) } + self.addGloballyRequiredFiles() self.generatePagesInternal() self.generatePostFeedPagesInternal() self.generateTagPagesInternal() @@ -51,6 +52,10 @@ extension Content { } } + private func addGloballyRequiredFiles() { + results.general.require(files: settings.general.requiredFiles) + } + private func copyRequiredFiles() { let count = results.requiredFiles.count var completed = 0