summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/external_links.lua7
-rw-r--r--site/style/main.sass2
2 files changed, 6 insertions, 3 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
diff --git a/site/style/main.sass b/site/style/main.sass
index 383855a..d454016 100644
--- a/site/style/main.sass
+++ b/site/style/main.sass
@@ -24,7 +24,7 @@ h1, h2, h3, h4, h5
h1
text-align: center
-a[href] .fa-external-link
+a[href] .url-mark
font-size: smaller;
padding-left: 0.2em