A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
929 B

  1. {# Older/Newer links #}
  2. {# The relative blog index to link to #}
  3. {% if mode == "drafts" %}
  4. {% set blog_index = "blog.drafts" %}
  5. {% elif mode == "private" %}
  6. {% set blog_index = "blog.private" %}
  7. {% else %}
  8. {% set blog_index = "blog.index" %}
  9. {% endif %}
  10. {% if can_older or can_earlier %}
  11. <div class="right">
  12. [
  13. <a href="{{ url_for('blog.rss') }}">RSS Feed</a> |
  14. {% if can_earlier %}
  15. {% if category %}
  16. <a href="{{ url_for('blog.category', category=category) }}?skip={{ earlier }}">&lt; Newer</a>
  17. {% else %}
  18. <a href="{{ url_for(blog_index) }}?skip={{ earlier }}">&lt; Newer</a>
  19. {% endif %}
  20. {% if can_older %} | {% endif %}
  21. {% endif %}
  22. {% if can_older %}
  23. {% if category %}
  24. <a href="{{ url_for('blog.category', category=category) }}?skip={{ older }}">Older &gt;</a>
  25. {% else %}
  26. <a href="{{ url_for(blog_index) }}?skip={{ older }}">Older &gt;</a>
  27. {% endif %}
  28. {% endif %}
  29. ]
  30. </div>
  31. {% endif %}