From 1ddf0629ef100176c993f7cd04db23d3e5633076 Mon Sep 17 00:00:00 2001 From: Jonathan Jordan Date: Sun, 15 Aug 2021 18:27:12 -0700 Subject: [PATCH] Add support for micro.blog --- env.js | 9 +++++++++ template/index.html | 4 ++++ www/css/brands.css | 8 ++++++++ www/icons/microblog.svg | 3 +++ 4 files changed, 24 insertions(+) create mode 100644 www/icons/microblog.svg diff --git a/env.js b/env.js index 2b6938e..670d1d5 100644 --- a/env.js +++ b/env.js @@ -13,6 +13,7 @@ var env = { BIO: '$BIO', GITHUB: '$GITHUB', TWITTER: '$TWITTER', + MICRO_BLOG: '$MICRO_BLOG', INSTAGRAM: '$INSTAGRAM', FACEBOOK: '$FACEBOOK', FACEBOOK_MESSENGER: '$FACEBOOK_MESSENGER', @@ -116,6 +117,14 @@ function useEnv(document) { twitterEl.remove() } + var microblogEl = document.getElementById('microblog'); + if (env.MICRO_BLOG) { + microblogEl.href = env.MICRO_BLOG; + } else { + microblogEl.nextElementSibling.remove() + microblogEl.remove() + } + var instagramEl = document.getElementById('instagram'); if (env.INSTAGRAM) { instagramEl.href = env.INSTAGRAM; diff --git a/template/index.html b/template/index.html index 7ec272a..9e15c37 100644 --- a/template/index.html +++ b/template/index.html @@ -96,6 +96,10 @@ Twitter LogoTwitter
+ + Micro.blog LogoMicro.blog +
+ Instagram LogoInstagram
diff --git a/www/css/brands.css b/www/css/brands.css index 9741cb0..777a94a 100644 --- a/www/css/brands.css +++ b/www/css/brands.css @@ -163,6 +163,14 @@ button:hover, .button.button-medium:focus { filter: brightness(90%) } +/* Micro.blog */ +.button.button-microblog { + color: #FFFFFF; + background-color: #FD9927 } +.button.button-microblog:hover, +.button.button-microblog:focus { + filter: brightness(90%) } + /* Pinterest */ .button.button-pinterest { color: #000000; diff --git a/www/icons/microblog.svg b/www/icons/microblog.svg new file mode 100644 index 0000000..30aa82b --- /dev/null +++ b/www/icons/microblog.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file