article.html 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {% extends "base.html" %}
  2. {% block title %}{{ article.title|striptags }}{% endblock %}
  3. {% block content %}
  4. <section id="content" class="body">
  5. <article>
  6. <header>
  7. <h1 class="entry-title">
  8. <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
  9. title="Permalink to {{ article.title|striptags }}">{{ article.title}}</a></h1>
  10. {% include 'twitter.html' %}
  11. </header>
  12. <div class="entry-content">
  13. {% include 'article_infos.html' %}
  14. {{ article.content }}
  15. </div><!-- /.entry-content -->
  16. {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
  17. <div class="comments">
  18. <h2>Comments !</h2>
  19. <div id="disqus_thread"></div>
  20. <script type="text/javascript">
  21. var disqus_identifier = "{{ article.url }}";
  22. var disqus_url = "{{ SITEURL }}/{{ article.url }}";
  23. (function() {
  24. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  25. dsq.src = 'http://{{ DISQUS_SITENAME }}.disqus.com/embed.js';
  26. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  27. })();
  28. </script>
  29. </div>
  30. {% endif %}
  31. </article>
  32. </section>
  33. {% endblock %}