summaryrefslogtreecommitdiffstats
path: root/plugins/external_links.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/external_links.lua')
-rw-r--r--plugins/external_links.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/external_links.lua b/plugins/external_links.lua
index 0edf9d8..2967364 100644
--- a/plugins/external_links.lua
+++ b/plugins/external_links.lua
@@ -6,8 +6,11 @@ while index do
href = HTML.get_attribute(link, "href")
if href then
- if Regex.match(href, "^https?://") then
- icon = HTML.parse("<i class=\"fa fa-external-link\" aria-hidden=\"true\"></i>")
+ if Regex.match(href, "^https?://github.com") then
+ icon = HTML.parse("<i class=\"url-mark fa fa-github\" aria-hidden=\"true\"></i>")
+ HTML.append_child(link, icon)
+ elseif Regex.match(href, "^https?://") then
+ icon = HTML.parse("<i class=\"url-mark fa fa-external-link\" aria-hidden=\"true\"></i>")
HTML.append_child(link, icon)
end
end