{% macro table(post) %}
{% match post.created_at %}
{% when Some(created_at) %}
written: {{ created_at|date }}
{% when None %}
{% endmatch %}
{% match post.modified_at %}
{% when Some(modified_at) %}
last modified: {{ modified_at|date }}
{% when None %}
{% endmatch %}
{% if !post.tags.is_empty() %}
tags:
{% for tag in post.tags %}
{{ tag }}
{% endfor %}
{% endif %}
{% endmacro %}