blog/templates/macros/blog.html
2019-06-18 23:28:43 -05:00

25 lines
858 B
HTML

{% macro postlisting(posts) %}
<table style="width: 100%;">
{% for post in posts %}
{% if not post.draft %}
<tr>
<td>
<span style="font-size: 1.2em;">
<a href="{{ post.permalink }}" class="brand-colorlink">{{ post.title }}</a>
</span>
<br />
<small>
{{ post.reading_time }} min read - Posted {% if post.extra.author %}by {{ post.extra.author }}{% endif %}
on {{ post.date }}
</small>
</td>
{% if post.tags %}
<td style="text-align: right;" class="hidden-sm">
<small>{{ post.tags | join(sep=", ") }}</small>
</td>
{% endif %}
</tr>
{% endif %}
{% endfor %}
</table>
{% endmacro postlisting %}