Show linking posts on page content
This commit is contained in:
@ -42,9 +42,17 @@ struct LocalizedPageContentView: View {
|
||||
}
|
||||
Spacer()
|
||||
}
|
||||
if let generationResults {
|
||||
PageContentResultsView(results: generationResults)
|
||||
}
|
||||
|
||||
HStack {
|
||||
if let generationResults {
|
||||
PageContentResultsView(results: generationResults)
|
||||
}
|
||||
let linkingPosts = content.posts.filter { $0.linkedPage == page }
|
||||
TextWithPopup(
|
||||
symbol: .ipadAndArrowForward,
|
||||
text: "\(linkingPosts.count) linking posts",
|
||||
items: linkingPosts.map { $0.title(in: language) })
|
||||
}.foregroundStyle(.secondary)
|
||||
HighlightedTextEditor(
|
||||
text: $pageContent,
|
||||
highlightRules: .markdown)
|
||||
|
Reference in New Issue
Block a user