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:
14
_includes/_social-share.html
Normal file
14
_includes/_social-share.html
Normal 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 -->
|
Reference in New Issue
Block a user