From 28fff4fa49eb30eb0ae932209fc5ac1d6ffd6a43 Mon Sep 17 00:00:00 2001
From: ManUtopiK <emmanuel.salomon@gmail.com>
Date: Mon, 5 Sep 2022 14:22:12 +0200
Subject: [PATCH] Added mastodon network. Fix #9

---
 components/layout/LayoutFooter.vue | 12 ++++++++++++
 static/settings/globals.json       |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/components/layout/LayoutFooter.vue b/components/layout/LayoutFooter.vue
index 7d605677..aa38ff82 100644
--- a/components/layout/LayoutFooter.vue
+++ b/components/layout/LayoutFooter.vue
@@ -76,6 +76,17 @@
         <div class="sm:col-span-2">
           <h3 class="text-3xl py-4">Suivez-nous</h3>
           <div class="text-xl">
+            <a
+              v-if="$config.mastodon_link && $config.mastodon_user"
+              :href="$config.mastodon_link"
+              target="_blank"
+              class="flex items-center mb-2 hover:underline"
+              rel="noopener noreferrer"
+            >
+              <fa :icon="['fab', 'mastodon']" class="text-2xl mr-2.5" />
+              <span>{{ $config.mastodon_user }}</span>
+            </a>
+
             <a
               v-if="$config.twitter_user"
               :href="`https://twitter.com/${$config.twitter_user}`"
@@ -97,6 +108,7 @@
               <fa :icon="['fab', 'facebook']" class="text-2xl mr-2.5" />
               <span>Groupe Facebook</span>
             </a>
+
             <nuxt-link
               to="/feed"
               class="flex items-center mb-2 hover:underline"
diff --git a/static/settings/globals.json b/static/settings/globals.json
index 67925e2a..d3fc16f9 100644
--- a/static/settings/globals.json
+++ b/static/settings/globals.json
@@ -7,5 +7,7 @@
   "map_url": "https://carte.monnaie-libre.fr/?zoom=5",
   "twitter_user": "monnaie_libre",
   "social_networks_hashtags": "MonnaieLibre,Äž1",
-  "facebook_group": "https://www.facebook.com/groups/monnaielibre/"
+  "facebook_group": "https://www.facebook.com/groups/monnaielibre/",
+  "mastodon_user": "@MonnaieLibre@mamot.fr",
+  "mastodon_link": "https://mamot.fr/@MonnaieLibre"
 }
-- 
GitLab