Skip to content

Commit 0c90078

Browse files
author
Steve Ortiz
committed
make social links optional
1 parent f03c708 commit 0c90078

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

_includes/social.html

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
<div class="navbar social">
22
<ul class="nav navbar-nav">
3-
<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username }}"><i class="fa fa-linkedin-square"></i></a></li>
4-
<li><a href="https://github.com/{{ site.github_username }}"><i class="fa fa-github"></i></a></li>
5-
<li><a href="https://twitter.com/{{ site.twitter_username }}"><i class="fa fa-twitter"></i></a></li>
6-
<li><a href="mailto:{{ site.email }}"><i class="fa fa-envelope"></i></a></li>
3+
{% if site.linkedin_username %}
4+
<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username }}"><i class="fa fa-linkedin-square"></i></a></li>
5+
{% endif %}
6+
{% if site.github_username %}
7+
<li><a href="https://github.com/{{ site.github_username }}"><i class="fa fa-github"></i></a></li>
8+
{% endif %}
9+
{% if site.twitter_username %}
10+
<li><a href="https://twitter.com/{{ site.twitter_username }}"><i class="fa fa-twitter"></i></a></li>
11+
{% endif %}
12+
{% if site.email %}
13+
<li><a href="mailto:{{ site.email }}"><i class="fa fa-envelope"></i></a></li>
14+
{% endif %}
715
</ul>
816
</div>

0 commit comments

Comments
 (0)