From 09f3ca758a96a470f192f99068db710f3f386c78 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 23 Dec 2022 08:11:44 -0800 Subject: [PATCH] WIP trying to replace the Twitter link with Mastodon --- assets/styles/root.css | 1 + config/_default/menu.yaml | 8 ++++---- config/_default/params.yaml | 1 + layouts/partials/head.html | 4 ---- static/icons/mastodon.svg | 4 ++++ 5 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 static/icons/mastodon.svg diff --git a/assets/styles/root.css b/assets/styles/root.css index 9b4c19f..8ada638 100644 --- a/assets/styles/root.css +++ b/assets/styles/root.css @@ -63,6 +63,7 @@ --social-menu-padding: 1rem; --menu-icon-size: 20px; --twitter-icon: url(/icons/twitter.svg); + --mastodon-icon: url(/icons/mastodon.svg); --github-icon: url(/icons/github.svg); --instagram-icon: url(/icons/instagram.svg); --feed-icon: url(/icons/rss.svg); diff --git a/config/_default/menu.yaml b/config/_default/menu.yaml index ad0aced..602b2fd 100644 --- a/config/_default/menu.yaml +++ b/config/_default/menu.yaml @@ -12,12 +12,12 @@ main: url: /about/ weight: 30 social: - - identifier: twitter - name: Twitter - url: https://twitter.com/erynofwales + - identifier: mastodon + name: Mastodon + url: "https://mastodon.social/@erynofwales" weight: 10 params: - shortName: tw + shortName: ma - identifier: github name: Github url: https://github.com/erynofwales diff --git a/config/_default/params.yaml b/config/_default/params.yaml index cbaec88..bd44254 100644 --- a/config/_default/params.yaml +++ b/config/_default/params.yaml @@ -1,4 +1,5 @@ twitter: erynofwales github: erynofwales instagram: erynofwales +mastodon: "@erynofwales@mastodon.social" description: Home page of Eryn Rachel Wells diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 4deaf0c..d356a6d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -15,10 +15,6 @@ {{- end -}} - {{- range $.Scratch.Get "social-list" -}} - - {{- end -}} - diff --git a/static/icons/mastodon.svg b/static/icons/mastodon.svg new file mode 100644 index 0000000..c1ffdce --- /dev/null +++ b/static/icons/mastodon.svg @@ -0,0 +1,4 @@ + + + +