Skip to content
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

Adding not listed social link #161

Open
e-ivkov opened this issue May 5, 2018 · 1 comment
Open

Adding not listed social link #161

e-ivkov opened this issue May 5, 2018 · 1 comment

Comments

@e-ivkov
Copy link

e-ivkov commented May 5, 2018

Can you advice me how to add social link that is not listed in _config.yml file?

@Chew
Copy link

Chew commented Jun 21, 2018

Yes! Very simple.
First, find the icon (if it exists) in the FontAwesome Icon set.
Moon is using font-awesome 4.7.0. If your icon's version is 4.7.0 or below, great! On the FA page, you'll see the fa-x code. Save that for later.

Open up your code, navigate to _includes/social-links.html
Add this line right above the h3 tag at the bottom

{% if site.SOCIALLINKHERE %}<a class="social-btn" href="BASEURL{{ site.SOCIALLINKHERE }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-SOCIALCODE"></i></a>{% endif %}

Replace SOCIALLINKHERE with a new item in your _config.yml

bob: jerry

and replace SOCIALCODE with the code from before.

If the icon you're looking for is above v4.7.0 (e.g. Discord), you're gonna have to update FA manually, and I'm not to sure how to do this yet.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants