{% extends "base.html" %} {% block title %} {{ article.title }} - {{ super() }} {% endblock title %} {% block content %}
{{ article.content }}

{% set day = article.date.strftime('%d')|int %} {% set suffix = ['st', 'nd', 'rd', 'th'] %} {{ article.date.strftime('%b') }} {{ day }} {%- if 4 <= day <= 20 or 24 <= day <= 30 -%} {{ suffix[3] }} {%- elif day % 10 - 1 == 0 -%} {{ suffix[0] }} {%- elif day % 10 - 1 == 1 -%} {{ suffix[1] }} {%- elif day % 10 - 1 == 2 -%} {{ suffix[2] }} {%- endif -%} {{ article.date.strftime(', %Y') }}

Published by {{ article.author }} in {{ article.category }}

{% if article.modified %}

Updated on {{ article.modified }}

{% endif %}
{% if article.tags %}

Tags

{% endif %}
{% endblock content %}