Compare commits
2 Commits
5dc63732f8
...
80e90c4055
Author | SHA1 | Date | |
---|---|---|---|
|
80e90c4055 | ||
|
5d4b3f715e |
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user