From f09ce128e837b4f2dc5c07fcb4150c5c988f8557 Mon Sep 17 00:00:00 2001 From: Michal Vanko Date: Thu, 5 Dec 2024 11:19:04 +0100 Subject: [PATCH] add mastodon --- src/pages/contact.rs | 6 ++++++ static/svg/input/mastodon.svg | 1 + templates/base.html | 4 ++++ templates/icons/sprite.svg | 2 +- 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 static/svg/input/mastodon.svg diff --git a/src/pages/contact.rs b/src/pages/contact.rs index 450c9dc..080d9cf 100644 --- a/src/pages/contact.rs +++ b/src/pages/contact.rs @@ -44,6 +44,12 @@ pub async fn render_contact() -> Result { title: "YouTube channel".to_string(), svg: "youtube".to_string(), }, + ContactLink { + href: "https://mastodon.online/@michalvankodev".to_string(), + label: "Mastodon".to_string(), + title: "Mastodon profile".to_string(), + svg: "mastodon".to_string(), + }, ContactLink { href: "https://instagram.com/michalvankodev".to_string(), label: "Instagram".to_string(), diff --git a/static/svg/input/mastodon.svg b/static/svg/input/mastodon.svg new file mode 100644 index 0000000..1e78d91 --- /dev/null +++ b/static/svg/input/mastodon.svg @@ -0,0 +1 @@ + diff --git a/templates/base.html b/templates/base.html index 54c5f38..90446e5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,6 +16,10 @@ href="/feed.xml" /> + + + + {% block og_meta %} diff --git a/templates/icons/sprite.svg b/templates/icons/sprite.svg index f1725b3..687ccf6 100644 --- a/templates/icons/sprite.svg +++ b/templates/icons/sprite.svg @@ -14,6 +14,6 @@ - + \ No newline at end of file