Skip to content

Commit

Permalink
add disqus comment system
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmem committed May 9, 2013
1 parent ef2509a commit 6b30a67
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/webapp/WEB-INF/velocity/article.vm
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ $metas.add("keywords",$!{article.title})
$!{article.html}
</div>
</article>
#if($children && $children.size()>0)
#parse("widget/childrenSection.vm")
#end
##if($children && $children.size()>0)
##parse("widget/childrenSection.vm")
##end

<hr/>

#parse("widget/disqus.vm")

<script>
mirco_wiki.prettyCode();
</script>
Expand Down
15 changes: 15 additions & 0 deletions src/main/webapp/WEB-INF/velocity/widget/disqus.vm
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'zimmem-wiki'; // required: replace example with your forum shortname

/* * * 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>

0 comments on commit 6b30a67

Please sign in to comment.