Skip to content

Commit fd0bc18

Browse files
committed
Added DisQus and Twitter!
1 parent 9626d1b commit fd0bc18

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

_includes/footer.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,14 @@
33
<div class="unit one-third center-on-mobiles">
44
<p>By <a href="http://james.walms.co.uk">James Walmsley</a>, Robert Steinbauer, and many more <a href="https://github.com/jameswalmsley/bitthunder/graphs/contributors">awesome&nbsp;contributors</a>.</p>
55
</div>
6-
<div class="unit two-thirds align-right center-on-mobiles">
6+
<div class="unit one-third align-center">
7+
<p>
8+
<!-- Put this just before the closing body tag -->
9+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
10+
<a href="https://twitter.com/share" class="twitter-share-button" data-via="bitthunder">Tweet</a>
11+
</p>
12+
</div>
13+
<div class="unit one-third align-right center-on-mobiles">
714
<p>
815
Proudly hosted by
916
<a href="https://github.com">

_layouts/posts.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,27 @@ <h5>Posted by: {{ page.author }}.</h5>
1717
<p>
1818
Published on: {{ page.date }}
1919
</p>
20+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
21+
<a href="https://twitter.com/share" class="twitter-share-button" data-via="bitthunder">Tweet</a>
22+
2023
</div>
24+
25+
<div id="disqus_thread"></div>
26+
<script type="text/javascript">
27+
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
28+
var disqus_shortname = 'bitthunder'; // required: replace example with your forum shortname
29+
30+
/* * * DON'T EDIT BELOW THIS LINE * * */
31+
(function() {
32+
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
33+
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
34+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
35+
})();
36+
</script>
37+
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
38+
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
39+
40+
2141
</article>
2242
</div>
2343

0 commit comments

Comments
 (0)