Skip to content

Commit

Permalink
Added Disqus comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rchristensen committed May 27, 2015
1 parent b758a65 commit 379b017
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
11 changes: 11 additions & 0 deletions default.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,17 @@
<script type="text/javascript" src="{{asset "js/nprogress.js"}}"></script>
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
<script type="text/javascript" src="{{asset "js/scripts.js"}}"></script>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'dianafrazao'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>
16 changes: 15 additions & 1 deletion post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,19 @@
{{#post}}
{{! No indention to prevent handlebars indenting <pre> tag content}}
{{> post-content}}
<div id="disqus_thread"></div>
<script type="text/javascript">
var disqus_shortname = 'dianafrazao'; // required: replace example with your forum shortname
var disqus_identifier = '{{post.id}}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
{{/post}}
</div>
</div>

0 comments on commit 379b017

Please sign in to comment.