Add first source scanning
This commit is contained in:
@ -10,7 +10,7 @@ struct LinkPreviewMetadata {
|
||||
/**
|
||||
The title to use for the link preview.
|
||||
|
||||
If `nil` is specified, then the localized element title is used.
|
||||
If `nil` is specified, then the localized element `title` is used.
|
||||
*/
|
||||
let title: String?
|
||||
|
||||
@ -23,8 +23,8 @@ struct LinkPreviewMetadata {
|
||||
|
||||
/**
|
||||
The description text for the link preview.
|
||||
- Note: If `nil` is specified, then first the (localized) element subtitle is used.
|
||||
If this is `nil` too, then the localized description of the element is used.
|
||||
- Note: If `nil` is specified, then first the (localized) element `subtitle` is used.
|
||||
If this is `nil` too, then the localized `description` of the element is used.
|
||||
*/
|
||||
let description: String?
|
||||
}
|
||||
|
@ -29,8 +29,8 @@ struct Site {
|
||||
print("Loaded site with \(elements.count) sections and \(metadata.languages.count) languages")
|
||||
|
||||
// Create example metadata
|
||||
_ = try? Page.Metadata(in: folder)
|
||||
_ = try? Section.Metadata(in: folder)
|
||||
//_ = try? Page.Metadata(in: folder)
|
||||
//_ = try? Section.Metadata(in: folder)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user