Skip to content

Commit

Permalink
Add defaults to icons
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed Jan 14, 2022
1 parent bffe256 commit 879bd07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _includes/icons.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if site.social.email %}
{% if site.social.email or site.email %}
<li>
<a href="mailto:{{ site.author.email }}" title="email">
<a href="mailto:{{ site.author.email | default: site.email }}" title="email">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
Expand Down Expand Up @@ -64,9 +64,9 @@
</li>
{% endif %}

{% if site.social.github %}
{% if site.social.github or site.github_username %}
<li>
<a href="https://github.com/{{ site.social.github }}" title="{{ site.social.default_txt }} GitHub">
<a href="https://github.com/{{ site.social.github | default: site.github_username }}" title="{{ site.social.default_txt }} GitHub">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
Expand Down Expand Up @@ -196,9 +196,9 @@
</li>
{% endif %}

{% if site.social.twitter %}
{% if site.social.twitter or site.twitter_username %}
<li>
<a href="https://twitter.com/{{ site.social.twitter }}" title="{{ site.social.default_txt }} Twitter" class="type">
<a href="https://twitter.com/{{ site.social.twitter | default: site.twitter_username }}" title="{{ site.social.default_txt }} Twitter" class="type">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
Expand Down

0 comments on commit 879bd07

Please sign in to comment.