Allow usage of different Twitter and Github usernames
and show these links only if twitter-username or github.username are set on _config.yml
This commit is contained in:
parent
c881d24553
commit
ffd960ca4e
|
@ -13,8 +13,8 @@
|
||||||
|
|
||||||
<div class="footer-col-2 column">
|
<div class="footer-col-2 column">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
{% if site.github-username %}<li>
|
||||||
<a href="https://github.com/{{ site.username }}">
|
<a href="https://github.com/{{ site.github-username }}">
|
||||||
<span class="icon github">
|
<span class="icon github">
|
||||||
<svg version="1.1" class="github-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" class="github-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
@ -29,11 +29,11 @@
|
||||||
c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
|
c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span class="username">{{ site.username }}</span>
|
<span class="username">{{ site.github-username }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>{% endif %}
|
||||||
<li>
|
{% if site.twitter-username %}<li>
|
||||||
<a href="https://twitter.com/{{ site.username }}">
|
<a href="https://twitter.com/{{ site.twitter-username }}">
|
||||||
<span class="icon twitter">
|
<span class="icon twitter">
|
||||||
<svg version="1.1" class="twitter-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
<svg version="1.1" class="twitter-icon-svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
|
||||||
|
@ -46,9 +46,9 @@
|
||||||
c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
|
c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
<span class="username">{{ site.username }}</span>
|
<span class="username">{{ site.twitter-username }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue