Full page content, fixes, cleaner settings

This commit is contained in:
Christoph Hagen
2024-12-13 11:26:34 +01:00
parent efc9234917
commit b3b8c9a610
50 changed files with 1351 additions and 607 deletions

View File

@ -124,20 +124,12 @@ private extension LocalizedTag {
}
}
private extension NavigationBarSettings {
var file: NavigationBarSettingsFile {
.init(navigationIconPath: iconPath,
navigationTags: tags.map { $0.id })
}
}
extension Settings {
var file: SettingsFile {
.init(
outputDirectoryPath: outputDirectoryPath,
navigationBar: navigationBar.file,
paths: paths.file,
navigationTags: navigationTags.map { $0.id },
posts: posts.file,
pages: pages.file,
german: german.file,
@ -145,6 +137,18 @@ extension Settings {
}
}
private extension PathSettings {
var file: PathSettingsFile {
.init(outputDirectoryPath: outputDirectoryPath,
pagesOutputFolderPath: pagesOutputFolderPath,
imagesOutputFolderPath: imagesOutputFolderPath,
filesOutputFolderPath: filesOutputFolderPath,
videosOutputFolderPath: videosOutputFolderPath,
tagsOutputFolderPath: tagsOutputFolderPath)
}
}
private extension PostSettings {
var file: PostSettingsFile {
@ -158,15 +162,9 @@ private extension PageSettings {
var file: PageSettingsFile {
.init(pageUrlPrefix: pageUrlPrefix,
contentWidth: contentWidth,
largeImageWidth: largeImageWidth)
}
}
private extension LocalizedSettings {
var file: LocalizedSettingsFile {
.init(navigationBarIconDescription: navigationBarIconDescription,
posts: posts.file)
largeImageWidth: largeImageWidth,
pageLinkImageSize: pageLinkImageSize,
javascriptFilesPath: javascriptFilesPath)
}
}