The blog.
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.
 
 
 
 

32 lines
613 B

  1. {% extends "base.j2" %}
  2. {% block main %}
  3. <!--
  4. {% block page_title %}<h1 class="title">{{ resource.meta.title }}</h1>{% endblock %}
  5. -->
  6. {% set posts = resource.node.walk_resources_sorted_by_time() %}
  7. {% for res in posts[0:3] %}
  8. {% refer to res.relative_path as post %}
  9. {{ post.post }}
  10. {% endfor %}
  11. <section>
  12. {% set nextpost = posts[3] %}
  13. <p class='prevnext'>
  14. <span class="small">
  15. <a class="prev{{' disabled' if not nextpost }}"
  16. title="{{ nextpost.meta.title }}"
  17. {% if nextpost %}
  18. href="{{ content_url(nextpost.url) }}"{% endif %}>
  19. Previous Post
  20. </a>
  21. </span>
  22. </div>
  23. </section>
  24. {% endblock %}