_link: Update external icon

This commit is contained in:
Stig-Ørjan Smelror 2024-02-06 07:30:40 +01:00
parent 2850f4567e
commit 949f36cb91

2
qsgen2
View File

@ -957,7 +957,7 @@ function _link() {
local modified_link="<a href=\"${url_dest}\">${url_txt}"
if [[ ${url_dest} =~ ^https?:// ]]; then
# Add external link icon for external URLs
modified_link+=" <img class=\"exticon\" alt=\"External site icon\" src=\"/images/ext-url-black.svg\" width=\"12\" />"
modified_link+=" <img class=\"exticon\" alt=\"External site icon\" src=\"/images/ext-black-top.svg\" width=\"12\" />"
fi
modified_link+="</a>"
line=${line//"#link ${url_full}"/${modified_link}}