2
0

post.html 887 B

1234567891011121314151617181920212223242526
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{post.title}} on {{post.date|date:"MM.dd"}}{% endblock %}
  3. {% block content %}
  4. <div id="post">
  5. {% include "/html/post-content.html" %}
  6. {% include "/html/partials/post-pagination.html" %}
  7. {% if disqus-shortname %}
  8. <div id="disqus_thread"></div>
  9. <script type="text/javascript">
  10. var disqus_config = function () {
  11. this.page.url = "{{site-url}}{{uri}}";
  12. this.page.identifier = "{{post.title}}";
  13. };
  14. (function() {
  15. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  16. dsq.src = '//{{disqus-shortname}}.disqus.com/embed.js';
  17. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  18. })();
  19. </script>
  20. {% endif %}
  21. </div>
  22. {% endblock %}