{% extends 'base.html' %}

{% block title %}帖子页面详情{% endblock %}

{% block main %}
    <div id="main">
    {% for post in postobj %}
        <article class="article article-type-post">
            <div class="article-meta">
              <a class="article-date">
                <time>{{ post.publish_time|date:'Y-m-d H:i:s' }}</time>
              </a>
              <div class="article-category">
                <a class="article-category-link" href="#" target="_blank">{{ post.category.cname }}</a>
              </div>
            </div>
            <div class="article-inner">
                <header class="article-header">
                    <h1 itemprop="name">
                        <a class="article-title">{{ post.title }}</a>
                    </h1>
                </header>
                <div class="article-entry" itemprop="articleBody">
                    <h2>前言</h2>
                        {{ post.des }}
                    <hr>
                        {{ post.content }}
                </div>
            </div>
        </article>
    {% endfor %}
    </div>

{% endblock %}