Skip to content

Commit

Permalink
refactoring social-links / pull request st4ple#33
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiokopplin committed Feb 24, 2016
1 parent cf72d26 commit 41d4e2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ highlighter: rouge
analytics-google: 'UA-MYANALYTICS'
disqus: mydisqus

# if you don't have any of social below, set to false then
# if you don't have any of social below, comment the line
facebook: myfacebook
twitter: mytwitter
instagram: myinstagram
Expand Down
14 changes: 7 additions & 7 deletions _includes/social-links.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
<div class="social-links">
{% if site.facebook != false %}
{% if site.facebook %}
<a class="link" data-title="facebook.com/{{ site.facebook }}" href="http://facebook.com/{{ site.facebook }}" target="_blank">
<svg class="icon icon-facebook"><use xlink:href="#icon-facebook"></use></svg>
</a>
{% endif %}

{% if site.twitter != false %}
{% if site.twitter %}
<a class="link" data-title="twitter.com/{{ site.twitter }}" href="http://twitter.com/{{ site.twitter }}" target="_blank">
<svg class="icon icon-twitter"><use xlink:href="#icon-twitter"></use></svg>
</a>
{% endif %}

{% if site.github != false %}
{% if site.github %}
<a class="link" data-title="github.com/{{ site.github }}" href="https://github.com/{{ site.github }}" target="_blank">
<svg class="icon icon-github"><use xlink:href="#icon-github"></use></svg>
</a>
{% endif %}

{% if site.instagram != false %}
{% if site.instagram %}
<a class="link" data-title="instagram.com/{{ site.instagram }}" href="http://instagram.com/{{ site.instagram }}" target="_blank">
<svg class="icon icon-instagram"><use xlink:href="#icon-instagram"></use></svg>
</a>
{% endif %}

{% if site.linkedin != false %}
{% if site.linkedin %}
<a class="link" data-title="linkedin.com/{{ site.linkedin }}" href="http://linkedin.com/{{ site.linkedin }}" target="_blank">
<svg class="icon icon-linkedin"><use xlink:href="#icon-linkedin"></use></svg>
</a>
{% endif %}

{% if site.youtube != false %}
{% if site.youtube %}
<a class="link" data-title="youtube.com/{{ site.youtube }}" href="http://youtube.com/{{ site.youtube }}" target="_blank">
<svg class="icon icon-youtube"><use xlink:href="#icon-youtube"></use></svg>
</a>
{% endif %}

{% if site.email != false %}
{% if site.email %}
<a class="link" data-title="{{ site.email }}" href="mailto:{{ site.email }}" target="_blank">
<svg class="icon icon-mail"><use xlink:href="#icon-mail"></use></svg>
</a>
Expand Down

0 comments on commit 41d4e2a

Please sign in to comment.