{% extends 'base.html.twig' %}

{% block content %}
<div class="container">
    <article class="py-4">
        {% if post.thumbnail %}
            <figure class="mb-4">
                <img src="{{ post.thumbnail }}" class="img-fluid rounded"
                     alt="{{ post.title|e('html_attr') }}">
            </figure>
        {% endif %}

        <h1>{{ post.title }}</h1>

        <div class="post-content">
            {{ post.content|raw }}
        </div>
    </article>
</div>
{% endblock %}
