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.
 
 
 
 

39 lines
828 B

  1. {% from "macros.j2" import itemurl %}
  2. {% extends "base.j2" %}
  3. {% block main %}
  4. <!--
  5. {% block page_title %}<h1 class="title">{{ resource.meta.title }}</h1>{% endblock %}
  6. -->
  7. {% set posts = resource.node.walk_resources_sorted_by_time() %}
  8. {% for res in posts[0:3] %}
  9. {% refer to res.relative_path as post %}
  10. {{ post.post }}
  11. {% endfor %}
  12. <section>
  13. {% set nextpost = posts[3] %}
  14. <p class='prevnext'>
  15. <span class="small">
  16. <a class="prev{{' disabled' if not nextpost }}"
  17. title="{{ nextpost.meta.title }}"
  18. {% if nextpost %}
  19. href="{{ itemurl(nextpost) }}"{% endif %}>
  20. Previous Post
  21. </a>
  22. </span>
  23. </p>
  24. </section>
  25. {% endblock %}
  26. {% block copyright %}
  27. Copyright © {{ time_now|date_format("%Y") }} John-Mark Gurney
  28. <br>
  29. Also on <a rel="me" href="https://flyovercountry.social/@encthenet">Mastodon</a>
  30. {% endblock %}