From 8c7a9436f8657c095c7367bd834906ee2ba4a02d Mon Sep 17 00:00:00 2001 From: Thomas Jost Date: Wed, 15 May 2019 15:49:45 +0200 Subject: [PATCH] add [feature]: mastodon in social menu Similar to #174 but with a nicer icon (taken from the Mastodon [press kit](https://source.joinmastodon.org/mastodon/joinmastodon/blob/master/public/press-kit.zip) and simplified with Inkscape). --- data/config/default/widgets.toml | 2 +- data/theme.toml | 1 + exampleSite/config.toml | 1 + layouts/partials/svg/icons.html | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data/config/default/widgets.toml b/data/config/default/widgets.toml index d69766c1..afa2f4dd 100644 --- a/data/config/default/widgets.toml +++ b/data/config/default/widgets.toml @@ -21,7 +21,7 @@ mirror = "" [social_menu] title = "" -platforms = ["github","facebook","twitter","instagram","email","codepen","gitlab","linkedin","telegram","google_scholar","youtube"] +platforms = ["github","facebook","twitter","mastodon","instagram","email","codepen","gitlab","linkedin","telegram","google_scholar","youtube"] [taxonomy_cloud] title = "" diff --git a/data/theme.toml b/data/theme.toml index a9610b76..7db29b95 100644 --- a/data/theme.toml +++ b/data/theme.toml @@ -6,6 +6,7 @@ github = "https://github.com/" gitlab = "https://gitlab.com/" instagram = "https://instagram.com/" linkedin = "https://linkedin.com/in/" +mastodon = "https://" twitter = "https://twitter.com/" telegram = "https://t.me/" google_scholar = "https://scholar.google.com/citations?user=" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e3891aae..d6ac1e8b 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -84,6 +84,7 @@ twitter = "MunifTanjim" telegram = "MunifTanjim" google_scholar = "qc6CJjYAAAAJ" youtube = "UCT-U0rNerYxItGcuoPX-WYA" +mastodon = "" [params.comments] enable = false diff --git a/layouts/partials/svg/icons.html b/layouts/partials/svg/icons.html index 8bc9d418..dce4f638 100644 --- a/layouts/partials/svg/icons.html +++ b/layouts/partials/svg/icons.html @@ -73,5 +73,7 @@ {{ else if eq "search" . }} + {{ else if eq "mastodon" . }} + {{ end }}