updated post list template
This commit is contained in:
parent
5e091128a0
commit
5cfe684c3b
2 changed files with 3 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue