{% extends 'blog/base.html' %} {% load blog %} {% block content %} {% for post in post_list %}

{{ post.title }}

投稿者: {{ post.writer }}

作成日: {{ post.created_at }}

更新日: {{ post.updated_at }}

カテゴリ: {{ post.category }}

タグ: {% for tag in post.tags.all %}{{ tag }},{% endfor %}

{% endfor %} {% if page_obj.has_previous %} 前へ {% endif %} {% for num in page_obj.paginator.page_range %} {% if page_obj.number == num %} {{ num }} {% else %} {{ num }} {% endif %} {% endfor %} {% if page_obj.has_next %} 次へ {% endif %} {% endblock %}