Merge pull request #69 from chipset95/social-share
More Social Share Button
This commit is contained in:
commit
6ca5ccc79b
2 changed files with 31 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ twitter-share: True
|
|||
reddit-share: True
|
||||
google-plus-share: True
|
||||
linkedin-share: True
|
||||
pinterest-share: True
|
||||
vkontakte-share: True
|
||||
disqus-shortname: "panossakkos"
|
||||
|
||||
###############
|
||||
|
|
|
|||
|
|
@ -36,6 +36,35 @@
|
|||
<div class="g-plus" data-action="share" data-href="{{site.url}}{{ site.baseurl}}{{page.url}}" data-annotation="bubble"></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% if site.vkontakte-share %}
|
||||
<div style="float:left; padding: 0 5px; vertical-align:top; background-color: #0077B5; border-radius:3px">
|
||||
<style type="text/css">
|
||||
vk {color: #fff;}
|
||||
</style>
|
||||
<script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script>
|
||||
<script type="text/javascript">
|
||||
document.write(VK.Share.button(
|
||||
{
|
||||
url: '{{site.url}}{{ site.baseurl}}{{page.url}}',
|
||||
title: '{{site.title}} | {{page.title}}',
|
||||
description: '{{page.description}}',
|
||||
},
|
||||
{
|
||||
type: 'custom',
|
||||
text: '<vk><i class="fa fa-vk"></i> Share</vk>'
|
||||
}
|
||||
));
|
||||
</script>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if site.pinterest-share %}
|
||||
<div style="float:left; padding: 0 5px; vertical-align:top">
|
||||
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script>
|
||||
<a data-pin-do="buttonPin" href="https://www.pinterest.com/pin/create/button/" data-pin-config="beside" data-pin-description="{{page.description}}" data-pin-url="{{site.url}}{{ site.baseurl}}{{page.url}}"></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<!-- Share Buttons End -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue