zyllian.github.io/site/templates/blog/list.tera

28 lines
802 B
Text
Raw Normal View History

2024-11-08 18:42:07 -08:00
{% extends "base.tera" %}
{% block content %}
2024-11-13 08:38:33 -08:00
{% if data.tag %}
<h1>blog posts tagged {{ data.tag }}</h1>
2023-06-09 21:55:04 -07:00
<p><a href="/blog/">View all blog posts</a></p>
2024-11-04 17:09:11 -08:00
{% else %}
2023-11-12 19:54:54 -08:00
<h1>blog Posts</h1>
<p><a href="tags">view blog tags</a></p>
<p><a href="rss.xml">rss feed</a></p>
2024-11-04 17:09:11 -08:00
{% endif %}
2024-11-13 08:38:33 -08:00
<h1>Page {{ data.page }}/{{ data.page_max }}</h1>
{% if data.previous %}
<a href="./{{data.previous}}">previous page</a>
2024-11-04 17:09:11 -08:00
{% endif %}
2024-11-13 08:38:33 -08:00
{% if data.next %}
<a href="./{{data.next}}">next page</a>
2024-11-04 17:09:11 -08:00
{% endif %}
2023-06-09 21:55:04 -07:00
<div class="blog-post-list">
2024-11-13 08:38:33 -08:00
{% for resource in data.resources %}
2023-06-09 21:55:04 -07:00
<div class="post">
2024-11-04 17:09:11 -08:00
<p class="title"><a href="/blog/{{resource.id}}">{{resource.title}}</a></p>
<p class="timestamp">{{resource.readable_timestamp}}</p>
2024-11-04 17:09:11 -08:00
<p class="short-desc">{{resource.desc}}</p>
2023-06-09 21:55:04 -07:00
</div>
2024-11-04 17:09:11 -08:00
{% endfor %}
2023-06-09 21:55:04 -07:00
</div>
2024-11-08 18:42:07 -08:00
{% endblock content %}