From 0c6bdc39394ce9e95bcde8525ca7ba7261f7ed01 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sun, 14 Mar 2021 10:30:15 +0100 Subject: [PATCH] Add some social links --- pelicanconf.py | 12 +++++++++--- theme/templates/_includes/social_links.html | 5 +++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pelicanconf.py b/pelicanconf.py index c7afc98..54f76eb 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -90,9 +90,15 @@ LINKS = (('Blog statique avec Pelican', 'http://getpelican.com/'), ('Thème graphique Elegant', 'http://oncrashreboot.com/elegant-best-pelican-theme-features'),) # Social widget -#SOCIAL = (('You can add links in your config file', '#'), -# ('Another social link', '#'),) -SOCIAL = '' +SOCIAL = ( + ("RSS", SITEURL + "/feeds/all.atom.xml"), + ("git", "https://git.lecygnenoir.info/LecygneNoir/blog.victor-hery.com"), + ("keybase", "https://keybase.io/victorhery"), + ("mastodon", "https://mamot.fr/@victorhery"), + ("Twitter", "https://twitter.com/victorhery"), +) +SOCIAL_PROFILE_LABEL = "Restez en contact" + DEFAULT_METADATA = { 'status': 'draft', diff --git a/theme/templates/_includes/social_links.html b/theme/templates/_includes/social_links.html index 1c1f86c..66ccfab 100644 --- a/theme/templates/_includes/social_links.html +++ b/theme/templates/_includes/social_links.html @@ -109,6 +109,11 @@ fill="#3bd75f"/> {% endif %} + {% if entry[0]|lower == 'git' %} + + + + {% endif %} {% endfor %} {% endif %}