Add optional social sharing buttons

- Social share buttons appear at the end of every post and page unless you add share: false to their YAML Front Matter
- Fixes #42
This commit is contained in:
Michael Rose
2015-01-21 11:21:50 -05:00
parent 9a1c5ff3e6
commit 87b8d0b129
6 changed files with 89 additions and 1 deletions

View File

@ -0,0 +1,14 @@
<div class="social-share">
<h4>Share on</h4>
<ul>
<li>
<a href="https://twitter.com/intent/tweet?text={{ site.url }}{{ page.url }}" class="twitter" title="Share on Twitter"><i class="fa fa-twitter"></i> Twitter</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ site.url }}{{ page.url }}" class="facebook" title="Share on Facebook"><i class="fa fa-facebook"></i> Facebook</a>
</li>
<li>
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" class="google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i> Google+</a>
</li>
</ul>
</div><!-- /.social-share -->