Browse Source

add shareaholic

master
sipp11 10 years ago
parent
commit
4f7350bc2e
  1. 19
      _layouts/post.html

19
_layouts/post.html

@ -15,6 +15,8 @@ layout: default
{{ content }} {{ content }}
</article> </article>
<div class='shareaholic-canvas' data-app='share_buttons' data-app-id='14890479'></div>
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
<script> <script>
@ -24,5 +26,22 @@ layout: default
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); (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 = '416a75478e6054008321d5e8f04a203d';
try { Shareaholic.init(site_id); } catch (e) {}
};
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(shr, s);
})();
//]]>
</script> </script>
</div> </div>

Loading…
Cancel
Save