Skip to content

Add optional fa_icon_pack property to social_links to allow more Font Awesome icons packs beyond brands #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,16 @@ minima:
- title: Jekyll at X (formerly Twitter)
icon: x-twitter
url: "https://x.com/jekyllrb"
- title: Email Jekyll
icon: envelope
fa_icon_pack: regular
url: "mailto:[email protected]"
```

where `title` corresponds to the link-title displayed when a visitor hovers mouse-pointer over url / icon and
`icon` refers to the Font Awesome icon id. e.g. `github` corresponds to `fa-github`.
Properties:
- `title` corresponds to the link-title displayed when a visitor hovers mouse-pointer over url / icon
- `icon` refers to the Font Awesome icon id, e.g. `github` corresponds to `fa-github`
- `fa_icon_pack` (optional) defines the Font Awesome icon pack. Default value is `brands`, which corresponds to `fa-brands`
- `url` url of the social link

Social platform icons are rendered using the latest version of Font Awesome Free webfonts sourced via remote CDN.
The full list of available social icons can be found at https://fontawesome.com/search?ic=brands
Expand Down
2 changes: 1 addition & 1 deletion _includes/social.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{%- for entry in site.minima.social_links -%}
<li>
<a rel="me" href="{{ entry.url }}" target="_blank" title="{{ entry.title }}">
<span class="grey fa-brands fa-{{ entry.icon }} fa-lg"></span>
<span class="grey fa-{{ entry.fa_icon_pack | default: "brands" }} fa-{{ entry.icon }} fa-lg"></span>
</a>
</li>
{%- endfor -%}
Expand Down