Skip to content

Commit 61446e1

Browse files
committed
Add defaults to icons
1 parent 5c47696 commit 61446e1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

_includes/icons.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{% if site.social.email %}
1+
{% if site.social.email or site.email %}
22
<li>
3-
<a href="mailto:{{ site.author.email }}" title="email">
3+
<a href="mailto:{{ site.author.email | default: site.email }}" title="email">
44
<span class="fa-stack fa-lg">
55
<i class="fa fa-circle fa-stack-2x"></i>
66
<i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
@@ -64,9 +64,9 @@
6464
</li>
6565
{% endif %}
6666

67-
{% if site.social.github %}
67+
{% if site.social.github or site.github_username %}
6868
<li>
69-
<a href="https://github.com/{{ site.social.github }}" title="{{ site.social.default_txt }} GitHub">
69+
<a href="https://github.com/{{ site.social.github | default: site.github_username }}" title="{{ site.social.default_txt }} GitHub">
7070
<span class="fa-stack fa-lg">
7171
<i class="fa fa-circle fa-stack-2x"></i>
7272
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
@@ -196,9 +196,9 @@
196196
</li>
197197
{% endif %}
198198

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

0 commit comments

Comments
 (0)