12345678910111213141516171819202122232425262728293031 |
- {% extends 'base.html' %} {% block content %} {% for post in posts %} {% load taggit_templatetags2_tags %}
- <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>
- <p>
- {% for tag in post.tags.all %}
- <a href="">{{ tag.name }}, </a>
- {% endfor %}
- </p>
- <p>
- {{ post.author }}
- </p>
-
- </div>
- {% endfor %}
- {% include "taggit_templatetags2/tagcanvas_include_js_static.html" %}
-
- <div id="tag-cloud">
- <ul>
- {% for tag in tags %}
- <li>{{tag}} ({{tag.num_times}})</li>
- {% endfor %}
- </ul>
- </div>
- </div>
- {% endblock %}
|