Permalink
Browse files

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"
```
  • Loading branch information...
apreshill authored and hanzei committed Dec 14, 2018
1 parent 3a6144e commit 2c5cfbc4b3792038963e9757edede994f0af8e8f
Showing with 20 additions and 11 deletions.
  1. +2 −2 docs/de/index.html
  2. +2 −2 docs/es/index.html
  3. +2 −2 docs/index.html
  4. +13 −4 exampleSite/config.toml
  5. +1 −1 layouts/partials/home/social.html

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 2c5cfbc

Please sign in to comment.