Skip to content

Commit

Permalink
Added site.baseurl at share buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
le4ker committed Sep 30, 2015
1 parent 7c26f55 commit 6b80bba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/share.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<div>
{% if site.fb-share %}
<div style="float:left; padding: 0 5px; vertical-align:top">
<div class="fb-share-button" data-href="{{site.baseurl}}{{page.url}}" data-layout="button_count"></div>
<div class="fb-share-button" data-href="{{site.url}}{{site.baseurl}}{{page.url}}" data-layout="button_count"></div>
</div>
{% endif %}

{% if site.twitter-share %}
<div style="float:left; padding: 0 5px; vertical-align:top">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{{ site.baseurl}}{{page.url}}" data-text="{{page.title}} {% for tag in page.tags%}#{{ tag }} {% endfor %}"></a>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{{site.url}}{{ site.baseurl}}{{page.url}}" data-text="{{page.title}} {% for tag in page.tags%}#{{ tag }} {% endfor %}"></a>
</div>
{% endif %}

{% if site.reddit-share %}
<div style="float:left; padding: 0 5px; vertical-align:top">
<script type="text/javascript">reddit_newwindow='1'</script>
<script type="text/javascript">reddit_title='{{page.title}}'</script>
<script type="text/javascript">reddit_url='{{site.baseurl}}{{page.url}}'</script>
<script type="text/javascript">reddit_url='{{site.url}}{{site.baseurl}}{{page.url}}'</script>
<script type="text/javascript" src="//www.redditstatic.com/button/button1.js"></script>
</div>
{% endif %}
Expand Down

0 comments on commit 6b80bba

Please # to comment.