Browse Source

Add shareaholic

master
sipp11 10 years ago
parent
commit
a5d69f2992
  1. 18
      _layouts/post.html

18
_layouts/post.html

@ -15,7 +15,7 @@ layout: default
{% endif %}
{{ content }}
</article>
<div class='shareaholic-canvas' data-app='share_buttons' data-app-id='14890586'></div>
<div id="disqus_thread"></div>
<script>
@ -28,6 +28,22 @@ layout: default
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
//<![CDATA[
(function() {
var shr = document.createElement('script');
shr.setAttribute('data-cfasync', 'false');
shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
shr.type = 'text/javascript'; shr.async = 'true';
shr.onload = shr.onreadystatechange = function() {
var rs = this.readyState;
if (rs && rs != 'complete' && rs != 'loaded') return;
var site_id = '7469c0b9536e616429d43fe6f4f7d873';
try { Shareaholic.init(site_id); } catch (e) {}
};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(shr, s);
})();
//]]>
</script>
</div>

Loading…
Cancel
Save