blog/templates/macros/blog.html

26 lines
882 B
HTML
Raw Normal View History

2018-08-09 06:53:47 +00:00
{% macro postlisting(posts) %}
<table style="width: 100%;">
{% for post in posts %}
{% if not post.draft %}
2020-02-12 03:51:19 +00:00
<tr class="postlisting-row">
2018-08-09 06:53:47 +00:00
<td>
<span style="font-size: 1.2em;">
<a href="{{ post.permalink }}" class="brand-colorlink">{{ post.title }}</a>
</span>
<br />
<small>
2019-06-19 04:28:35 +00:00
{{ post.reading_time }} min read - Posted {% if post.extra.author %}by {{ post.extra.author }}{% endif %}
2018-08-09 06:53:47 +00:00
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 %}