External files, improve page generation
This commit is contained in:
@@ -8,6 +8,8 @@ import SwiftUI
|
||||
*/
|
||||
final class LocalizedPage: ObservableObject {
|
||||
|
||||
unowned let content: Content
|
||||
|
||||
/**
|
||||
The string to use when creating the url for the page.
|
||||
|
||||
@@ -64,7 +66,8 @@ final class LocalizedPage: ObservableObject {
|
||||
@Published
|
||||
var linkPreviewDescription: String?
|
||||
|
||||
init(urlString: String,
|
||||
init(content: Content,
|
||||
urlString: String,
|
||||
title: String,
|
||||
lastModified: Date? = nil,
|
||||
originalUrl: String? = nil,
|
||||
@@ -74,6 +77,7 @@ final class LocalizedPage: ObservableObject {
|
||||
linkPreviewImage: FileResource? = nil,
|
||||
linkPreviewTitle: String? = nil,
|
||||
linkPreviewDescription: String? = nil) {
|
||||
self.content = content
|
||||
self.urlString = urlString
|
||||
self.title = title
|
||||
self.lastModified = lastModified
|
||||
|
Reference in New Issue
Block a user