Skip to content

Commit

Permalink
Only show social profiles if there is a link
Browse files Browse the repository at this point in the history
I want to have people share my stuff on facebook, but dont really like randoms adding me. Maybe thats rude, but facebook is a little more private than Twitter for example.
  • Loading branch information
philsturgeon committed Nov 25, 2014
1 parent 227283e commit 1447b6f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ <h1 class="blog-title">{{ site.title }}</h1>
<h2 class="blog-description">{{ site.description }}</h2>
<div class="custom-links">
{% for social in site.social %}
<a class="icon-{{ social.icon }}" href="{{ social.url }}">
<i class="fa fa-{{ social.icon }}"></i>
</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
{% if social.url %}
<a class="icon-{{ social.icon }}" href="{{ social.url }}">
<i class="fa fa-{{ social.icon }}"></i>
</a>
&nbsp;&nbsp;·&nbsp;&nbsp;
{% endif %}
{% endfor %}
<a href="/about/">About</a>
</div>
Expand Down

0 comments on commit 1447b6f

Please sign in to comment.