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

{% block main_class %}{% endblock %}

{% block content %}
<section class="bg-primary text-white py-5 mb-5{% if post.thumbnail %} position-relative overflow-hidden{% endif %}">
    {% if post.thumbnail %}
        <div class="hero-overlay position-absolute top-0 start-0 w-100 h-100" style="background-image: url('{{ post.thumbnail|e('html_attr') }}');"></div>
    {% endif %}
    <div class="container position-relative py-5 text-center">
        <h1 class="display-4 fw-bold">{{ post.title }}</h1>
    </div>
</section>
<div class="container">
    <article>
        <div class="post-content">
            {{ post.content|raw }}
        </div>
    </article>
</div>
{% endblock %}
