diff options
| author | Owen Jacobson <owen.jacobson@grimoire.ca> | 2013-01-03 14:30:25 -0500 |
|---|---|---|
| committer | Owen Jacobson <owen.jacobson@grimoire.ca> | 2013-01-03 14:30:25 -0500 |
| commit | 5575b096046f6c7c226277454da9d6f934e2aefc (patch) | |
| tree | 82f9916abca51ea43eeed8dabd777b63ce5a0921 /.templates | |
| parent | 5643269187958a8a1eee4961c1c52874a5db6d40 (diff) | |
| parent | 6c2f461aa8f20587afbc2ebc533b6d0b8c2bfee2 (diff) | |
Enable disqus commenting.
Diffstat (limited to '.templates')
| -rw-r--r-- | .templates/base.html | 5 | ||||
| -rw-r--r-- | .templates/document.html | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/.templates/base.html b/.templates/base.html new file mode 100644 index 0000000..39c5ae9 --- /dev/null +++ b/.templates/base.html @@ -0,0 +1,5 @@ +{% extends 'markdoc-default/base.html' %} +{% block css %} +{{ super() }} +{{ html.cssimport(make_relative("/media/css/comments.css")) }} +{% endblock %} diff --git a/.templates/document.html b/.templates/document.html new file mode 100644 index 0000000..8051277 --- /dev/null +++ b/.templates/document.html @@ -0,0 +1,20 @@ +{% extends 'markdoc-default/document.html' %} +{% block body_footer %} +<div id="comments"> +<div id="disqus_thread"></div> +<script type="text/javascript"> + /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ + var disqus_shortname = 'grimoire'; // 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 = 'http://' + 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> +</div> +{{ super() }} +{% endblock %}
\ No newline at end of file |
