From f53d5fd6ec56aef40f9f9f7fba464dfebc20f6a5 Mon Sep 17 00:00:00 2001 From: eltrac Date: Sun, 8 Mar 2026 09:15:08 +0800 Subject: feat: new external link icon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit replace "↗" with a SVG image, because on some devices, it might be rendered as "↗️" emoji. --- assets/css/_markdown.scss | 7 ++++++- static/icons/external.svg | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 static/icons/external.svg diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index 00916795..a4e8f92d 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -97,7 +97,12 @@ // external link icon &.external-link::after { - content: '↗'; + content: ''; + background-image: url('/icons/external.svg'); + background-size: cover; + opacity: 0.65; + height: 1em; + width: 1em; } // icons for specific domains diff --git a/static/icons/external.svg b/static/icons/external.svg new file mode 100644 index 00000000..e7290003 --- /dev/null +++ b/static/icons/external.svg @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file -- cgit v1.2.3