Compare commits

...

2 Commits

Author SHA1 Message Date
Christoph Hagen
80e90c4055 Fix code highlighting 2025-02-28 19:25:14 +01:00
Christoph Hagen
5d4b3f715e Remove global files from additional output list 2025-02-28 19:14:58 +01:00
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
struct OtherCodeBlock {
private let codeHighlightFooter = "<script>hljs.highlightAll();</script>"
private let codeHighlightFooter = "<script> document.addEventListener('DOMContentLoaded', () => { hljs.highlightAll(); });</script>"
let results: PageGenerationResults

View File

@ -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