From 6baaec2da47f313ce84e3c9dd16f0b27a8e34e86 Mon Sep 17 00:00:00 2001 From: Bandie Date: Wed, 14 Feb 2018 01:18:11 +0100 Subject: [PATCH] Adding Mastodon to the social networks (#198) Merge pull request 198 --- README.md | 6 ++++++ _config.yml | 8 ++++++++ _includes/social.html | 1 + assets/minima-social-icons.svg | 6 ++++++ 4 files changed, 21 insertions(+) diff --git a/README.md b/README.md index 5d674bd..b25feeb 100644 --- a/README.md +++ b/README.md @@ -173,6 +173,12 @@ pinterest_username: jekyll youtube_username: jekyll googleplus_username: +jekyll rss: rss + +mastodon: + - username: jekyll + instance: example.com + - username: jekyll2 + instance: example.com ``` -- diff --git a/_config.yml b/_config.yml index baf09ce..45120d6 100644 --- a/_config.yml +++ b/_config.yml @@ -19,6 +19,14 @@ rss: rss #youtube_username: jekyll #googleplus_username: +jekyll +# Mastodon instances +# mastodon: +# - username: jekyll +# instance: example.com +# - username: jekyll2 +# instance: example.com + + show_excerpts: false # set to true to show excerpts on the homepage # Minima date format diff --git a/_includes/social.html b/_includes/social.html index b3f8e47..c2d966c 100644 --- a/_includes/social.html +++ b/_includes/social.html @@ -6,6 +6,7 @@ {% if site.instagram_username%}
  • {{ site.instagram_username| escape }}
  • {% endif %} {% if site.linkedin_username%}
  • {{ site.linkedin_username| escape }}
  • {% endif %} {% if site.pinterest_username%}
  • {{ site.pinterest_username| escape }}
  • {% endif %} + {% for mst in site.mastodon %}{% if mst.username and mst.instance %}
  • {{ mst.username|escape }}
  • {% endif %}{% endfor %} {% if site.twitter_username%}
  • {{ site.twitter_username| escape }}
  • {% endif %} {% if site.youtube_username%}
  • {{ site.youtube_username| escape }}
  • {% endif %} {% if site.googleplus_username%}
  • {{ site.googleplus_username| escape }}
  • {% endif %} diff --git a/assets/minima-social-icons.svg b/assets/minima-social-icons.svg index f532010..fa7399f 100644 --- a/assets/minima-social-icons.svg +++ b/assets/minima-social-icons.svg @@ -24,4 +24,10 @@ + + + + + +