article.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {% extends "base.html" %}
  2. {% block title %}{{ article.title|striptags }}{% endblock %}
  3. {% block content %}
  4. <article id="content">
  5. <h1 class="entry-title col1of1">
  6. {{ article.title }}
  7. </h1>
  8. {% if article.toc %}
  9. <nav id="side-nav" class="col1of3">
  10. {{ article.toc }}
  11. </nav>
  12. {% endif %}
  13. <div {% if article.toc %}class="col2of3"{% else %}class="col1of1"{% endif %}>
  14. {% include 'twitter.html' %}
  15. {% include 'article_infos.html' %}
  16. {{ article.content }}
  17. </div><!-- /.entry-content -->
  18. {% if DISQUS_SITENAME and SITEURL and article.status != "draft" %}
  19. <div class="comments">
  20. <h2>Comments !</h2>
  21. <div id="disqus_thread"></div>
  22. <script type="text/javascript">
  23. var disqus_shortname = '{{ DISQUS_SITENAME }}';
  24. var disqus_identifier = '{{ article.url }}';
  25. var disqus_url = '{{ SITEURL }}/{{ article.url }}';
  26. (function() {
  27. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  28. dsq.src = '//{{ DISQUS_SITENAME }}.disqus.com/embed.js';
  29. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  30. })();
  31. </script>
  32. <noscript>Please enable JavaScript to view the comments.</noscript>
  33. </div>
  34. {% endif %}
  35. <div class="clearfix"></div>
  36. </article>
  37. {% endblock %}