TolgaTatli / Halve

Stylish Two-Column Jekyll Theme
https://tolgatatli.github.io/Halve/
MIT License
290 stars 356 forks source link

Adding Support for LinkedIn/Medium social links? #22

Open schaar opened 8 years ago

schaar commented 8 years ago

Hi there - I'm trying to figure out how to add some additional assets to allow for social links not included in the original theme. I added the following line to the social-links.html file as an example for Linkedin:

{% if site.linkedin %}<li><a class="social-btn" href="https://www.linkedin.com/in/{{ site.linkedin }}" target="_blank" rel="noopener noreferrer"><i class="fa fa-fw fa-linkedin"></i></a></li>{% endif %}

I also included a LinkedIn reference on the _config.yml file, but I think I'm missing an extra step. Thoughts?

ghost commented 6 years ago

You should add the Font Awesome html code. I just happen to create a new icon and link to add my resume online link. Though I am still figuring out how to write the absolute URL, you can easily change the icon just using the Font Awesome syntax. For instance, I used the fa-file icon for my CV, so the syntax would be:

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