Added post tags

This commit is contained in:
2013-10-01 21:18:11 +02:00
parent 6ada4d0a5d
commit 4cb97ed97a
5 changed files with 15 additions and 0 deletions

View File

@@ -2,6 +2,13 @@
<h3>{% if title_links %}<a href="{% url 'blog:read' post.created_at.year post.created_at.month post.created_at.day post.slug %}">{% endif %}{{ post.title }}{% if title_links %}</a>{% else %}<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div>{% endif %}</h3>
<p class="article-date">{{ post.created_at|date:'m-d-Y :: H:i' }} by {{ post.user.first_name }} {{ post.user.last_name }}</p>
{{ post.content|safe }}
{% if post.tags.all %}
<p class="article-tags">Tags:
{% for tag in post.tags.all %}
<a href="{% url 'blog:taglist' tag.slug %}">{{ tag.name }}</a>
{% endfor %}
</p>
{% endif %}
{% if not title_links %}
<div class="g-plus" data-action="share" data-height="15"></div>
{% endif %}