share links

This commit is contained in:
Mahdi Dibaiee 2015-04-12 21:00:11 +04:30
parent 914d13e674
commit aa173585cd
3 changed files with 15 additions and 0 deletions

7
_includes/share.html Normal file
View File

@ -0,0 +1,7 @@
<div class="share-page">
Share this &rarr;
<a href="https://twitter.com/intent/tweet?text={{ page.title }}&url={{ site.url }}{{ page.url }}&via={{ site.twitter_username }}&related={{ site.twitter_username }}" rel="nofollow" target="_blank" title="Share on Twitter">Twitter</a>
<a href="https://facebook.com/sharer.php?u={{ site.url }}{{ page.url }}" rel="nofollow" target="_blank" title="Share on Facebook">Facebook</a>
<a href="https://plus.google.com/share?url={{ site.url }}{{ page.url }}" rel="nofollow" target="_blank" title="Share on Google+">Google+</a>
</div>

View File

@ -12,6 +12,7 @@ layout: default
{{ content }}
</article>
{% include share.html %}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'dibaiee';

View File

@ -4,6 +4,13 @@ body {
padding-bottom: 5rem;
}
.share-page {
padding: 10px 50px;
background: rgba(0, 0, 0, 0.1);
border-radius: 5px;
margin: 50px 0;
}
header {
width: 100%;
text-align: center;