|
1234567891011121314151617181920 |
- {% extends 'base.html' %} {% block content %}
- {% if tag %} Posts tagged with "{{ tag.name }}" {% endif %}
- {% for post in posts %}
- <div class="post">
- <div class="date">
- {{ post.published_date }}
- </div>
- <h1>
- <a href="{% url 'post_detail' pk=post.pk %}">{{ post.title }}</a>
- </h1>
- <p>{{ post.text|linebreaks }}</p>
- Tags: {% for tag in post.tags.all %}
- <a href="{% url 'student_page_remove' tag.slug %}">{{ tag.name }}</a>
- {% if not forloop.last %}, {% endif %} {% endfor %} <p>
- {{ post.author }}
- </p>
- </div>
- {% endfor %}
- </div>
- {% endblock %}
|