{% extends "base.html" %}
{% block title %}{{ article.title }}{% endblock %}

{% block body_main %}
<article class="card">
    <div class="card-body">
        <h1 class="card-title">{{ article.title }}</h1>
        <div class="text-muted mb-4">
            <span>作者：{{ article.author }}</span> • 
            <span>发布日期：{{ article.pub_date|date:"Y-m-d" }}</span> • 
            <span>分类：<a href="{% url 'category_list' article.category.slug %}" class="text-decoration-none">{{ article.category.name }}</a></span>
        </div>
        
        <div class="article-content">
            {{ article.content|safe }}
        </div>
    </div>
</article>
{% endblock %}
