External files, improve page generation

This commit is contained in:
Christoph Hagen
2024-12-10 15:21:28 +01:00
parent 8183bc4903
commit efc9234917
50 changed files with 1069 additions and 424 deletions

View File

@ -4,6 +4,8 @@ struct PageSettingsFile {
let pageUrlPrefix: String
let contentWidth: Int
let largeImageWidth: Int
}
extension PageSettingsFile: Codable {
@ -14,6 +16,7 @@ extension PageSettingsFile {
static var `default`: PageSettingsFile {
.init(pageUrlPrefix: "page",
contentWidth: 600)
contentWidth: 600,
largeImageWidth: 1200)
}
}