{# Display Created Date #}
{% if metadata.created_at %}
{# Corrected label and added date formatting #}
Published:
{# Format example: 2025-05-02. Use |date:"N d, Y" for "May 2, 2025" #}
{{ metadata.created_at|date:"Y-m-d" }}
{% if metadata.created_at.time != '00:00:00' %}at {{ metadata.created_at|time:"H:i" }}{% endif %}
{% endif %}
{# Display Updated Date - ONLY if different from Created Date #}
{# Uncommented this block and added date formatting #}
{% if metadata.updated_at and metadata.updated_at != metadata.created_at %}
Updated:
{# Format example: 2025-05-02. Use |date:"N d, Y" for "May 2, 2025" #}
{{ metadata.updated_at|date:"Y-m-d" }}
{% if metadata.updated_at.time != '00:00:00' %}at {{ metadata.updated_at|time:"H:i" }}{% endif %}
{% endif %}
{% if metadata.word_count %}
Word count:{{ metadata.word_count }}
{% endif %}
{% if metadata.reading_time_minutes %}
Reading time:{{ metadata.reading_time_minutes|floatformat:0 }} min read
{% endif %}
{% if metadata.tags %}
Tags:
{% for tag in metadata.tags %}
{{ tag }}
{% endfor %}
{% endif %}
{% if metadata.custom_meta %}
{% for key, value in metadata.custom_meta.items %}
{{ key|title }}:{{ value }}
{% endfor %}
{% endif %}
{% if metadata.prev_page or metadata.next_page %}
{% if metadata.prev_page %}
← Previous
{% else %}
{% endif %}
{% if metadata.next_page %}
Next →
{% endif %}