From 2c5cfbc4b3792038963e9757edede994f0af8e8f Mon Sep 17 00:00:00 2001 From: Alison Presmanes Hill Date: Fri, 14 Dec 2018 00:32:50 -0800 Subject: Add fa icon packs (#113) This PR adds functionality for users to specify which `icon_pack` to use (`fas` or `fab`; see: https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4) in the `config.toml` file, so that users can use the solid icons as well as the brand icons. ``` [[params.social]] url = "https://twitter.com/" icon = "twitter" # icon name without the 'fa-' icon_pack = "fab" [[params.social]] url = "https://facebook.com/" icon = "facebook-f" # icon name without the 'fa-' icon_pack = "fab" [[params.social]] url = "https://linkedin.com/" icon = "linkedin-in" # icon name without the 'fa-' icon_pack = "fab" [[params.social]] url = "mailto:youremail@email.com" # For a direct email link, use "mailto:test@example.org". icon = "paper-plane" # icon name without the 'fa-' icon_pack = "fas" ``` --- exampleSite/config.toml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'exampleSite/config.toml') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e0088db..9d5f082 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -34,16 +34,25 @@ DefaultContentLanguage = "en" # Default language fo pinterest = true # Social icons appear in introduction and contact section. Add as many more as you like. - # Find icon names here: https://fontawesome.com/cheatsheet/ + # Icon pack "fab" includes social network icons, see: https://fontawesome.com/icons?d=gallery&s=brands&m=free + # Icon pack "fas" includes solid style icons, see: https://fontawesome.com/icons?d=gallery&s=solid&m=free [[params.social]] url = "https://twitter.com/" - icon = "twitter" + icon = "twitter" # icon name without the 'fa-' + icon_pack = "fab" [[params.social]] url = "https://facebook.com/" - icon = "facebook-f" + icon = "facebook-f" # icon name without the 'fa-' + icon_pack = "fab" [[params.social]] url = "https://linkedin.com/" - icon = "linkedin-in" + icon = "linkedin-in" # icon name without the 'fa-' + icon_pack = "fab" + [[params.social]] + url = "mailto:youremail@email.com" # For a direct email link, use "mailto:test@example.org". + icon = "paper-plane" # icon name without the 'fa-' + icon_pack = "fas" + # If you don't want to use the default menu, you can define one by yourself # [[menu.main]] -- cgit v1.2.3