mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
social buttons on articles
This commit is contained in:
parent
43f23f05b9
commit
c4da5c9734
4 changed files with 73 additions and 0 deletions
26
alchemy/templates/include/sharing.html
Normal file
26
alchemy/templates/include/sharing.html
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<hr />
|
||||
<div class="well well-sm"> <!-- Social media sharing buttons -->
|
||||
{% if TWITTER_USERNAME %}
|
||||
<!-- Twitter -->
|
||||
<a href="https://twitter.com/share" class="twitter-share-button"
|
||||
data-via="{{ TWITTER_USERNAME }}" >Tweet</a>
|
||||
{% endif %}
|
||||
|
||||
<!-- Google+ -->
|
||||
<div class="g-plus" data-action="share" data-annotation="bubble"></div>
|
||||
|
||||
<div class="g-plusone" data-size="medium"></div>
|
||||
|
||||
<!-- Facebook -->
|
||||
<div class="fb-like"
|
||||
{% if page %}
|
||||
data-href="{{ SITEURL }}/{{ page.url }}"
|
||||
{% else %}
|
||||
data-href="{{ SITEURL }}/{{ article.url }}"
|
||||
{% endif %}
|
||||
data-layout="button_count"
|
||||
data-action="like" data-show-faces="true"
|
||||
data-share="true">
|
||||
</div>
|
||||
|
||||
</div> <!-- /Social media sharing buttons -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue