2
0

previews.html 770 B

12345678910111213141516171819202122232425262728
  1. {% extends "/html/base.html" %}
  2. {% block content %}
  3. <div id="post">
  4. {% for post in posts %}
  5. <div class="post-header">
  6. <h2>{{post.title}}</h2>
  7. <div id="post-meta">
  8. {% if post.author %}
  9. <div class="author">{{post.author}}</div>
  10. {% endif %}
  11. <div class="date">{{post.date|date:longDate}}</div>
  12. </div>
  13. </div>
  14. {{post.content|safe}}
  15. <a href="{{post.uri}}">Continue reading &#8594;</a>
  16. <hr>
  17. {% endfor %}
  18. <div id="prev-next">
  19. {% if prev-uri %}
  20. <a class="left" href="{{prev-uri}}">&laquo; Prev</a>
  21. {% endif %}
  22. {% if next-uri %}
  23. <a class="right" href="{{next-uri}}">Next &raquo;</a>
  24. {% endif %}
  25. </div>
  26. </div>
  27. {% endblock %}