{% comment %} Published Date (Grid Item 1 on md+) {% endcomment %}
{% if metadata.published %}
Published:{{ metadata.published|date:"D d M Y" }}
{% endif %}
{% comment %} Modified Date (Grid Item 2 on md+) {% endcomment %}
{% if metadata.modified %}
{% if not metadata.published or metadata.modified != metadata.published %}
Modified:{{ metadata.modified|date:"D d M Y" }}
{% endif %}
{% endif %}
{% comment %} Word Count (Grid Item 3 on md+) {% endcomment %}
{% if metadata.word_count %}
Word count:{{ metadata.word_count }}
{% endif %}
{% comment %} Reading Time (Grid Item 4 on md+) {% endcomment %}
{% if metadata.reading_time_minutes %}
Reading time:{{ metadata.reading_time_minutes|floatformat:0 }} min read
{% endif %}
{% comment %} Custom Metadata Items - Each is a grid item (Item 5, 6, 7... on md+) {% endcomment %}
{% if metadata.custom_meta %}
{% for key, value in metadata.custom_meta.items %}
{{ key|title }}:{{ value }}
{% endfor %}
{% endif %}
{# End of sb-metadata-grid #}
{% comment %} Tags are outside the main grid, displayed below it {% endcomment %}
{% if metadata.tags %}
Tags:
{% for tag in metadata.tags %}
{{ tag }}
{% endfor %}
{% endif %}
{% comment %} Navigation Links {% endcomment %}
{% if metadata.prev_page or metadata.next_page %}
{% if metadata.prev_page %}
← Previous
{% else %}
{# Placeholder for alignment #}
{% endif %}
{% if metadata.next_page %}
Next →
{% endif %}