updated post list template

This commit is contained in:
Daniel Fichtinger 2025-06-29 00:27:32 -04:00
parent 5e091128a0
commit 5cfe684c3b
2 changed files with 3 additions and 1 deletions

View file

@ -5,7 +5,7 @@
{% if post_list %}
<ul>
{% for item in post_list %}
<li>{{ item.metadata.title }}</li>
<li><a href="/{{ item.url }}">{{ item.metadata.title }}</a></li>
{% endfor %}
</ul>
{% endif %}

View file

@ -23,6 +23,8 @@ def get_footer(template_dir: Path) -> str | None:
return html_footer.read_text()
# TODO: add next/prev post button logic to posts
# TODO: add a recent posts element that can be included elsewhere?
class Templater:
def __init__(self, template_dir: Path, post_list: list[Item]):
self.env: Environment = Environment(