mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2025-01-01 14:58:45 +00:00
91b19bccb5
Use a macro to render those cards too
7 lines
369 B
Text
7 lines
369 B
Text
{% macro post_card(article) %}
|
|
<div>
|
|
<h3><a href="{{ article.url }}">{{ article.post.title }}</a></h3>
|
|
<p>{{ article.post.content | escape | truncate(length=200) }}…</p>
|
|
<p>By <a href="/@/{{ article.author.fqn }}/">{{ article.author.display_name }}</a> ⋅ {{ article.date | date(format="%B %e") }}</p>
|
|
</div>
|
|
{% endmacro post_card %}
|