{% extends "base.html" %} {% block title %}{{ post.title }} - Blog{% endblock %} {% block meta_description %}{{ post.content[:160] }}{% endblock %} {% block meta_keywords %}{{ post.tags|join(', ') }}{% endblock %} {% block meta_author %}{{ post.author_id }}{% endblock %} {% block canonical_url %}{{ request.base_url }}web/posts/{{ post.slug }}{% endblock %} {% block og_type %}article{% endblock %} {% block og_url %}{{ request.base_url }}web/posts/{{ post.slug }}{% endblock %} {% block og_title %}{{ post.title }}{% endblock %} {% block og_description %}{{ post.content[:160] }}{% endblock %} {% block twitter_title %}{{ post.title }}{% endblock %} {% block twitter_description %}{{ post.content[:160] }}{% endblock %} {% block content %}

{{ post.title }}

{{ post.author_id[0]|upper }} {{ post.author_id }} {{ post.created_at.strftime('%B %d, %Y') }} {% if post.published %} {{ _('post.status_published', current_locale) }} {% else %} {{ _('post.status_draft', current_locale) }} {% endif %} 💬 {{ post.comment_count }}
{{ post.content|markdown|safe }}

💬 {{ _('post.comments', current_locale) }} ({{ post.comment_count }})

{% if user %} {% endif %}
{% if user %} {% endif %} {% macro render_comment(comment, depth) %}
{{ comment.author_id[0]|upper }}
{{ comment.author_id }} {% if comment.created_at %}{{ comment.created_at.strftime('%B %d, %Y') }}{% endif %}
{{ comment.content }}
{% if user %} {% endif %}
{% set key = comment.id|string %} {% if key in reply_comments %}
{% for child in reply_comments[key] %} {{ render_comment(child, depth + 1) }} {% endfor %}
{% endif %}
{% endmacro %}
{% if top_level_comments %} {% for comment in top_level_comments %} {{ render_comment(comment, 0) }} {% endfor %} {% else %}

{{ _('post.no_comments', current_locale) }}

{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}