From a11f2684bc99030e81ce0b7c65f5a61daedada87 Mon Sep 17 00:00:00 2001 From: vimux Date: Sat, 22 Dec 2018 09:00:08 -0500 Subject: [PATCH] Generate footer_social.html from social.toml data --- data/social.toml | 77 +++++++++++++++++++++++++++++ layouts/partials/footer_social.html | 72 +++------------------------ 2 files changed, 84 insertions(+), 65 deletions(-) create mode 100644 data/social.toml diff --git a/data/social.toml b/data/social.toml new file mode 100644 index 0000000..15179f5 --- /dev/null +++ b/data/social.toml @@ -0,0 +1,77 @@ +[[icons]] +id = "email" +url = "mailto:%s" +icon = "svg/email.svg" +weight = 10 + +[[icons]] +id = "facebook" +url = "https://www.facebook.com/%s" +icon = "svg/facebook.svg" +weight = 20 + +[[icons]] +id = "twitter" +url = "https://twitter.com/%s" +icon = "svg/twitter.svg" +weight = 30 + +[[icons]] +id = "telegram" +url = "https://t.me/%s" +icon = "svg/telegram.svg" +weight = 40 + +[[icons]] +id = "instagram" +url = "https://www.instagram.com/%s" +icon = "svg/instagram.svg" +weight = 50 + +[[icons]] +id = "pinterest" +url = "https://www.pinterest.com/%s" +icon = "svg/pinterest.svg" +weight = 60 + +[[icons]] +id = "vk" +url = "https://vk.com/%s" +icon = "svg/vk.svg" +weight = 70 + +[[icons]] +id = "linkedin" +url = "https://linkedin.com/in/%s" +icon = "svg/linkedin.svg" +weight = 80 + +[[icons]] +id = "github" +url = "https://github.com/%s" +icon = "svg/github.svg" +weight = 90 + +[[icons]] +id = "gitlab" +url = "https://gitlab.com/%s" +icon = "svg/gitlab.svg" +weight = 100 + +[[icons]] +id = "stackoverflow" +url = "https://stackoverflow.com/users/%s" +icon = "svg/stackoverflow.svg" +weight = 110 + +[[icons]] +id = "mastodon" +url = "https://mastodon.social/@%s" +icon = "svg/mastodon.svg" +weight = 120 + +[[icons]] +id = "medium" +url = "https://medium.com/@%s" +icon = "svg/medium.svg" +weight = 130 diff --git a/layouts/partials/footer_social.html b/layouts/partials/footer_social.html index 05c96f2..a393abe 100644 --- a/layouts/partials/footer_social.html +++ b/layouts/partials/footer_social.html @@ -1,69 +1,11 @@ -{{ if .Site.Params.social }} +{{- if .Site.Params.social }} -{{ end }} \ No newline at end of file +{{- end }} \ No newline at end of file