{% extends 'layout.html' %}
{% load comment_format %}
{% block title %} | Blog : {{ post.name }}{% endblock %}
{% block og_title %}Blog de Partir De Zéro : {{ post.name }}{% endblock %}
{% block description %}{{ post.content|striptags|truncatewords:20 }}{% endblock %}
{% block og_description %}{{ post.content|striptags|truncatewords:20 }}{% endblock %}

{% block content %}
    <section class="blog post-detail">
        <header class="post-header">
            <h1 class="post-title">{{ post.name }}</h1>
            <div class="post-meta">
                <span class="post-date"><i class="fa-regular fa-calendar"></i> {{ post.created_at|date:"d F Y" }}</span>
                {% if post.tags %}
                    <span class="sep">•</span>
                    <span class="post-tags"><i class="fa-solid fa-tag"></i> {{ post.tags }}</span>
                {% endif %}
            </div>
        </header>

        <article class="post-content prose">
            {{ post.content|comment_markdown }}
        </article>
    </section>
{% endblock %}