Create page from post

This commit is contained in:
Christoph Hagen
2025-01-18 12:02:06 +01:00
parent 1d4b3c266c
commit 51eff690d2
7 changed files with 88 additions and 24 deletions

View File

@ -54,6 +54,16 @@ final class LocalizedPost: ObservableObject {
linkPreview.remove(file)
}
func makePage(urlString: String) -> LocalizedPage {
.init(content: content,
urlString: urlString,
title: title ?? "Title",
lastModified: lastModified,
originalUrl: nil,
linkPreview: linkPreview,
hideTitle: false)
}
// MARK: Images
var hasImages: Bool {