Sort file lists for consistent storage

This commit is contained in:
Christoph Hagen
2024-11-20 14:25:10 +01:00
parent 8ae2a237cc
commit cb22ae34f2
6 changed files with 76 additions and 23 deletions

View File

@ -31,18 +31,18 @@ struct LocalizedPageFile {
/**
The files (images, videos, other files) used in the page.
*/
let files: Set<String>
let files: [String]
/**
The additional files required for the page to function correctly, but which are not stored with the content.
*/
let externalFiles: Set<String>
let externalFiles: [String]
/**
Specifies additional files which should be copied to the destination when generating the content.
- Note: This property defaults to an empty set.
*/
let requiredFiles: Set<String>
let requiredFiles: [String]
let title: String

View File

@ -28,7 +28,7 @@ extension PostFile: Codable {
*/
struct LocalizedPostFile {
let images: Set<String>
let images: [String]
let title: String?