Add page settings, improve settings UI

This commit is contained in:
Christoph Hagen
2024-12-05 21:07:06 +01:00
parent f2d78aef93
commit 18eb64f289
17 changed files with 189 additions and 43 deletions

View File

@ -0,0 +1,11 @@
struct PageSettingsFile {
let pageUrlPrefix: String
let contentWidth: Int
}
extension PageSettingsFile: Codable {
}

View File

@ -6,7 +6,7 @@ struct PostSettingsFile {
let postsPerPage: Int
/// The maximum width of the main content
let contentWidth: CGFloat
let contentWidth: Int
}
extension PostSettingsFile: Codable { }

View File

@ -9,6 +9,8 @@ struct SettingsFile {
let posts: PostSettingsFile
let pages: PageSettingsFile
let german: LocalizedSettingsFile
let english: LocalizedSettingsFile