From 77aab8e9fcf9a64d2d933f352d077f7c42e1c33d Mon Sep 17 00:00:00 2001 From: Mickael Date: Sat, 11 May 2019 21:48:54 +0200 Subject: [PATCH] Add crapaud-fou social network --- data/tisseurs/mckmonster.yml | 3 ++- themes/beautifulhugo/data/beautifulhugo/social.toml | 5 +++++ themes/beautifulhugo/layouts/_default/tisseurs.html | 7 +------ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/data/tisseurs/mckmonster.yml b/data/tisseurs/mckmonster.yml index 8fc558f..9bc30b6 100644 --- a/data/tisseurs/mckmonster.yml +++ b/data/tisseurs/mckmonster.yml @@ -2,4 +2,5 @@ nom: mckmonster github: mckmonster gitlab: mckmonster -crapaudfou: trenty \ No newline at end of file +crapaudfou: trenty +email: mckmonster@mailo.com \ No newline at end of file diff --git a/themes/beautifulhugo/data/beautifulhugo/social.toml b/themes/beautifulhugo/data/beautifulhugo/social.toml index 5968c80..10da56c 100644 --- a/themes/beautifulhugo/data/beautifulhugo/social.toml +++ b/themes/beautifulhugo/data/beautifulhugo/social.toml @@ -118,4 +118,9 @@ url = "https://www.goodreads.com/%s" title = "Goodreads" icon = "fab fa-goodreads" +[[social_icons]] +id = "crapaudfou" +url = "https://coa.crapaud-fou.org/direct/%s" +title = "crapaud-fou" +icon = "fab fa-rocketchat" diff --git a/themes/beautifulhugo/layouts/_default/tisseurs.html b/themes/beautifulhugo/layouts/_default/tisseurs.html index f7f438c..b93d443 100644 --- a/themes/beautifulhugo/layouts/_default/tisseurs.html +++ b/themes/beautifulhugo/layouts/_default/tisseurs.html @@ -4,7 +4,7 @@
{{ range $tisseur := .Site.Data.tisseurs }}
-
{{ $tisseur.nom }}
+

{{ $tisseur.nom }}

    {{ range $social := $.Site.Data.beautifulhugo.social.social_icons }} {{- if isset $tisseur $social.id }} @@ -18,11 +18,6 @@ {{- end -}} {{ end }} - {{ if .crapaudfou }} -
  • - crapaud-fou -
  • - {{ end }}
{{ end }}