{% extends "blog/base.html" %} {% block title %}Mój blog{% endblock %} {% block content %}

Mój blog

{% if tag %}

Posty oznaczone tagiem "{{ tag.name }}"

{% endif %} {% for post in posts %}

{{ post.title }}

Tagi: {% for tag in post.tags.all %} {{ tag.name }} {% if not forloop.last %}, {% endif %} {% endfor %}

Opublikowany {{ post.publish }} przez {{ post.author }}

{{ post.body|truncatewords:30|linebreaks }} {% endfor %} {% include "pagination.html" with page=posts %} {% endblock %}