Merge pull request #83 from lrdodge/feature/youtube-footer-link

Add YouTube link to Footer
This commit is contained in:
Dean Attali 2016-08-09 17:33:01 -07:00 committed by GitHub
commit fbdf63bfc8
2 changed files with 15 additions and 3 deletions

View File

@ -48,6 +48,7 @@ author:
xing: yourname # eg. daattali xing: yourname # eg. daattali
stackoverflow: yourlink # eg. "3943160/daattali" stackoverflow: yourlink # eg. "3943160/daattali"
instagram: yourname # eg. daattali instagram: yourname # eg. daattali
youtube: yourlink # eg. user/daattali or channel/daatali
# Select which links to show in the footer # Select which links to show in the footer
footer-links-active: footer-links-active:
@ -60,6 +61,7 @@ footer-links-active:
xing: false xing: false
stackoverflow: false stackoverflow: false
instagram: false instagram: false
youtube: false
# Select which share links to show in posts # Select which share links to show in posts
share-links-active: share-links-active:

View File

@ -82,6 +82,16 @@
</span> </span>
</a> </a>
</li> </li>
{% endif %}
{% if site.author.youtube and site.footer-links-active.youtube %}
<li>
<a href="https://www.youtube.com/{{ site.author.youtube }}" title="YouTube">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-youtube fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
{% endif %} {% endif %}
{% if site.footer-links-active.rss %} {% if site.footer-links-active.rss %}
<li> <li>
@ -91,14 +101,14 @@
<i class="fa fa-rss fa-stack-1x fa-inverse"></i> <i class="fa fa-rss fa-stack-1x fa-inverse"></i>
</span> </span>
</a> </a>
</li> </li>
{% endif %} {% endif %}
</ul> </ul>
<p class="copyright text-muted"> <p class="copyright text-muted">
{{ site.author.name }} {{ site.author.name }}
&nbsp;&bull;&nbsp; &nbsp;&bull;&nbsp;
{{ site.time | date: '%Y' }} {{ site.time | date: '%Y' }}
{% if site.url-pretty %} {% if site.url-pretty %}
&nbsp;&bull;&nbsp; &nbsp;&bull;&nbsp;
<a href="{{ site.url }}">{{ site.url-pretty }}</a> <a href="{{ site.url }}">{{ site.url-pretty }}</a>