diff --git a/Shared/Article Rendering/ArticleRenderer.swift b/Shared/Article Rendering/ArticleRenderer.swift
index 16e601462..550117598 100644
--- a/Shared/Article Rendering/ArticleRenderer.swift
+++ b/Shared/Article Rendering/ArticleRenderer.swift
@@ -152,7 +152,19 @@ private extension ArticleRenderer {
let title = titleOrTitleLink()
d["title"] = title
-
+
+ if let externalLink = article.externalURL, externalLink != article.preferredLink {
+ var displayLink = externalLink.strippingHTTPOrHTTPSScheme
+ if displayLink.count > 40 {
+ displayLink = displayLink.prefix(40).appending("...")
+ }
+ let regarding = NSLocalizedString("Regarding", comment: "Regarding")
+ let externalLinkString = "\(regarding): \(displayLink)"
+ d["external_link"] = externalLinkString
+ } else {
+ d["external_link"] = ""
+ }
+
d["body"] = body
var components = URLComponents()
diff --git a/Shared/Article Rendering/shared.css b/Shared/Article Rendering/shared.css
index 7c99939bf..7f651fdd5 100644
--- a/Shared/Article Rendering/shared.css
+++ b/Shared/Article Rendering/shared.css
@@ -78,6 +78,10 @@ body > .systemMessage {
color: var(--feedlink-color);
}
+.externalLink {
+ font-style: italic;
+}
+
.avatar img {
border-radius: 4px;
}
diff --git a/Shared/Article Rendering/template.html b/Shared/Article Rendering/template.html
index 532ff2692..f5f1e7aa6 100644
--- a/Shared/Article Rendering/template.html
+++ b/Shared/Article Rendering/template.html
@@ -10,5 +10,6 @@
[[title]]
[[date_medium]]
+[[external_link]]
[[body]]