瀏覽代碼

Extract discuss from blogit.py

Added it to the templates
oz123 11 年之前
父節點
當前提交
4fbb1595ff
共有 2 個文件被更改,包括 16 次插入1 次删除
  1. 15 0
      templates/discuss.html
  2. 1 1
      templates/entry.html

+ 15 - 0
templates/discuss.html

@@ -0,0 +1,15 @@
+{% block disqus %}
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
+ var disqus_shortname = 'oz123githubcom'; // 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>
+{% endblock %}

+ 1 - 1
templates/entry.html

@@ -23,7 +23,7 @@
   <h3>Discussions/Feedback.</h3>
 </div>
 <!--creadet by entry.html-->
-{{ disquss }}
+{% include 'discuss.html' %}
 {% endblock %}