Skip to content

Commit

Permalink
Merge pull request barryclark#43 from chipset95/master
Browse files Browse the repository at this point in the history
Added Google+ and LinkedIN Share for blog post. Fixes barryclark#38
  • Loading branch information
Panos Sakkos committed Nov 9, 2015
2 parents 00c5c83 + b96754c commit 6aa1e2b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ paginate: 5
fb-share: True
twitter-share: True
reddit-share: True
google-plus-share: True
linkedin-share: True
disqus-shortname: "panossakkos"

###############
Expand Down
12 changes: 12 additions & 0 deletions _includes/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@
</div>
{% endif %}

{% if site.linkedin-share %}
<div style="float:left; padding: 0 5px; vertical-align:top; background-color: #0077B5; border-radius:3px">
<a style="color: #fff; vertical-align:middle; align: middle;" href="https://www.linkedin.com/cws/share?url={{site.url}}{{site.baseurl}}{{page.url}}&amp;title={{site.title}} | {{page.title}}&amp;lang=en_US" target="_blank"><i class="fa fa-linkedin"></i> | Share</a>
</div>
{% endif %}

{% if site.google-plus-share %}
<div style="float:left; padding: 0 5px; vertical-align:top">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plus" data-action="share" data-href="{{site.url}}{{ site.baseurl}}{{page.url}}" data-annotation="bubble"></div>
</div>
{% endif %}
</div>

<!-- Share Buttons End -->

0 comments on commit 6aa1e2b

Please sign in to comment.