Refactoring of styles - BEM + ITCSS, removed Disqus.
[ghost-theme-willow.git] / partials / post-share.hbs
diff --git a/partials/post-share.hbs b/partials/post-share.hbs
new file mode 100644 (file)
index 0000000..ce45d60
--- /dev/null
@@ -0,0 +1,16 @@
+<span class="c-post-view-share">
+    <a class="c-post-view-share__item--twitter" href="https://twitter.com/intent/tweet?text={{encode title}}&amp;url={{url absolute="true"}}"
+       onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
+        Share on Twitter
+    </a>
+    |
+    <a class="c-post-view-share__item--facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
+       onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
+        Share on Facebook
+    </a>
+    |
+    <a class="c-post-view-share__item--google" href="https://plus.google.com/share?url={{url absolute="true"}}"
+       onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
+        Share on Google+
+    </a>
+</span>
\ No newline at end of file