Merge pull request #54 from DonMartin76/master
Tweet and Share on LinkedIn buttons
This commit is contained in:
commit
1100f31a3b
|
@ -47,6 +47,7 @@ layout: default
|
||||||
{% assign author_content = author_content_temp %}
|
{% assign author_content = author_content_temp %}
|
||||||
{% if author.twitter %}
|
{% if author.twitter %}
|
||||||
{% capture author_twitter %}<a href="https://twitter.com/{{ author.twitter }}" target="_blank"><i class="fa fa-twitter-square"> </i></a>{% endcapture %}
|
{% capture author_twitter %}<a href="https://twitter.com/{{ author.twitter }}" target="_blank"><i class="fa fa-twitter-square"> </i></a>{% endcapture %}
|
||||||
|
{% capture tweet_link %} by @{{ author.twitter }}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if author.linkedin %}
|
{% if author.linkedin %}
|
||||||
{% capture author_linkedin %}<a href="https://www.linkedin.com/in/{{ author.linkedin }}" target="_blank"><i class="fa fa-linkedin-square"> </i></a>{% endcapture %}
|
{% capture author_linkedin %}<a href="https://www.linkedin.com/in/{{ author.linkedin }}" target="_blank"><i class="fa fa-linkedin-square"> </i></a>{% endcapture %}
|
||||||
|
@ -79,6 +80,13 @@ layout: default
|
||||||
<!-- Post Content -->
|
<!-- Post Content -->
|
||||||
<article>
|
<article>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
|
<a href="https://twitter.com/share" class="twitter-share-button" data-text='"{{ page.title }}" blog post{{ tweet_link }}' data-via="HaufeDev">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
||||||
|
<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
|
||||||
|
<script type="IN/Share"></script>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue