post.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {% extends "/html/base.html" %}
  2. {%block subtitle %}: {{post.title}}{% endblock %}
  3. {% block content %}
  4. <div id="post">
  5. <a href="/">Home</a>
  6. {% include "/html/post-content.html" %}
  7. <div id="prev-next">
  8. {% if post.prev %}
  9. <a href="{{post.prev.uri}}">&laquo; {{post.prev.title}}</a>
  10. {% endif %}
  11. {% if post.next %}
  12. <a class="right" href="{{post.next.uri}}">{{post.next.title}} &raquo;</a>
  13. {% endif %}
  14. </div>
  15. {% if disqus-shortname %}
  16. <div id="disqus_thread"></div>
  17. <script type="text/javascript">
  18. var disqus_config = function () {
  19. this.page.url = "{{site-url}}{{uri}}";
  20. this.page.identifier = "{{post.title}}";
  21. };
  22. (function() {
  23. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  24. dsq.src = '//{{disqus-shortname}}.disqus.com/embed.js';
  25. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  26. })();
  27. </script>
  28. {% endif %}
  29. </div>
  30. {% endblock %}