{% macro render_post_list(posts) %}
{{ _("Title") }} | {{ _("Author") }} | {{ _("Categories") }} | {{ _("Comments") }} | {{ _("Date") }} {%- for post in posts %} |
---|---|---|---|---|
{%- if post.title %}{{ post.title|e }}{%- else %}#{%- endif %} | {{ post.author.display_name|e }} | {% for category in post.categories %}{{ category.name|e }} {%- if not loop.last %}, {% endif %} {%- else %}{{ _("no categories") }}{% endfor %} | {{ post.comments|count }} | {{ post.pub_date|datetimeformat('short') if post.pub_date }} {%- else %} |
{{ _("No pages.") }} |