Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlison Presmanes Hill <apreshill@users.noreply.github.com>2018-12-14 11:32:50 +0300
committerHanzei <16541325+hanzei@users.noreply.github.com>2018-12-14 11:32:50 +0300
commit2c5cfbc4b3792038963e9757edede994f0af8e8f (patch)
tree77ff9e94227bf4976cccd25ab0bbcd1a0d93b8e4 /exampleSite/config.toml
parent3a6144e557b1ec8befb653ac0008ebe47f057d93 (diff)
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" ```
Diffstat (limited to 'exampleSite/config.toml')
-rw-r--r--exampleSite/config.toml17
1 files changed, 13 insertions, 4 deletions
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]]