From 6f396b77999d41d2f52b46c18221eb8a59e06607 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Mon, 14 Oct 2024 16:07:42 -0400 Subject: [PATCH] Add proper social media icons, left-align those things --- assets/icons/codeberg.svg | 164 +++++++++++++++++++++++ assets/icons/github.svg | 1 + assets/icons/mastodon.svg | 3 + assets/icons/pixiv.svg | 1 + assets/newgrounds.webp | Bin 164 -> 0 bytes assets/pixiv.webp | Bin 164 -> 0 bytes config.yaml | 8 +- themes/red/assets/css/site.css | 14 ++ themes/red/layouts/partials/sidebar.html | 2 +- 9 files changed, 188 insertions(+), 5 deletions(-) create mode 100644 assets/icons/codeberg.svg create mode 100644 assets/icons/github.svg create mode 100644 assets/icons/mastodon.svg create mode 100644 assets/icons/pixiv.svg delete mode 100644 assets/newgrounds.webp delete mode 100644 assets/pixiv.webp diff --git a/assets/icons/codeberg.svg b/assets/icons/codeberg.svg new file mode 100644 index 0000000..e395984 --- /dev/null +++ b/assets/icons/codeberg.svg @@ -0,0 +1,164 @@ + + + Codeberg logo + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + Codeberg logo + + + + Robert Martinez + + + + + Codeberg and the Codeberg Logo are trademarks of Codeberg e.V. + + + 2020-04-09 + + + Codeberg e.V. + + + codeberg.org + + + + + + + + + + + + + diff --git a/assets/icons/github.svg b/assets/icons/github.svg new file mode 100644 index 0000000..37fa923 --- /dev/null +++ b/assets/icons/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/icons/mastodon.svg b/assets/icons/mastodon.svg new file mode 100644 index 0000000..e03938c --- /dev/null +++ b/assets/icons/mastodon.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/icons/pixiv.svg b/assets/icons/pixiv.svg new file mode 100644 index 0000000..81de8df --- /dev/null +++ b/assets/icons/pixiv.svg @@ -0,0 +1 @@ + diff --git a/assets/newgrounds.webp b/assets/newgrounds.webp deleted file mode 100644 index 85606fee6429a4b69e05804371dad99fe2fb8feb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmV;V09*f3Nk>00012MM6+kP&iDG0000l5`Y8{KR_m6u|WFYK0$m+s6ilUvl=V< z*yjyS5I_=80+Y-=(eobw;D2sqGtfu|97mGmD0BKfEB=578+{I}G5|5WH74MHoIVdC z`ac15nl9TrvQ5fbJXs4FD_pfp&vFMIE(|oll%hGR*s=w1ppJ&h}=`x9%(~ SR)*bu!DDn5`4asm|1AL&g+Z49 diff --git a/assets/pixiv.webp b/assets/pixiv.webp deleted file mode 100644 index d763b9de64eebe19014b05ba4217e3aa9f9ca1d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmV;V09*f3Nk>00012MM6+kP&iDG0000l5`Y8{KcFU(6z2Ww3#5_?71&VIND6fI z`8V_cD(H~`fuxQ7VYwdb^B(|!|2M-eC6?h095<5eD*OHUf8Y-DL;}x5fC%835g~B( zkiYay3K9LE071T&={*{%1{NmigN{Y4nQnv S=ColUu;o_qD11f!+4~|oUP`?H diff --git a/config.yaml b/config.yaml index 9ccf6d0..cadca05 100644 --- a/config.yaml +++ b/config.yaml @@ -161,22 +161,22 @@ menu: socials: - name: 'Mastodon' params: - - img: 'mastodon.webp' + - img: 'icons/mastodon.svg' url: 'https://mastodon.art/@redstrate' weight: -1 - name: 'Pixiv' params: - - img: 'pixiv.webp' + - img: 'icons/pixiv.svg' url: 'https://www.pixiv.net/en/users/58118005' weight: 2 - name: 'Codeberg' params: - - img: 'codeberg.webp' + - img: 'icons/codeberg.svg' url: 'https://codeberg.org/redstrate' weight: 3 - name: 'GitHub' params: - - img: 'github.webp' + - img: 'icons/github.svg' url: 'https://github.com/redstrate' weight: 4 diff --git a/themes/red/assets/css/site.css b/themes/red/assets/css/site.css index 69814d0..8c606f1 100644 --- a/themes/red/assets/css/site.css +++ b/themes/red/assets/css/site.css @@ -108,6 +108,14 @@ height: 0 !important; width: 0 !important; } + + .site-menu > img { + float: left; + margin-left: 5px; + margin-top: 10px; + width: 25px; + height: 25px; + } } body { @@ -698,3 +706,9 @@ model-viewer { margin: auto; } } + +.site-menu > img { + float: left; + margin-left: 5px; + margin-top: 2px; +} diff --git a/themes/red/layouts/partials/sidebar.html b/themes/red/layouts/partials/sidebar.html index f6aea7f..1eaa1f0 100644 --- a/themes/red/layouts/partials/sidebar.html +++ b/themes/red/layouts/partials/sidebar.html @@ -26,7 +26,7 @@ {{ range .Site.Menus.socials }}