blog: Display tags with dateline.
This hopefully makes it a little clearer which entry the tags apply to.
This commit is contained in:
parent
c7a8375002
commit
88474ec876
3 changed files with 9 additions and 6 deletions
|
@ -10,8 +10,9 @@
|
||||||
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
|
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
|
||||||
{{ object.summary|safe }}
|
{{ object.summary|safe }}
|
||||||
<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>
|
<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>
|
||||||
<p class="date small">Posted by <strong>{{ object.author.formal_name }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
|
<p class="date small">Posted by <strong>{{ object.author.formal_name }}</strong> on {{ object.pub_date|date:"F j, Y" }}
|
||||||
{% if object.tags.all %}<p class="blog-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
|
{% if object.tags.all %}<span class="blog-tags">/ Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</span>{% endif %}
|
||||||
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -10,8 +10,9 @@
|
||||||
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
|
<h3><a href="{{ object.get_absolute_url }}">{{ object.headline|safe }}</a></h3>
|
||||||
{{ object.summary|safe }}
|
{{ object.summary|safe }}
|
||||||
<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>
|
<p><span class="continued"><a href="{{ object.get_absolute_url }}">Read More...</a></span></p>
|
||||||
<p class="date small">Posted by <strong>{{ object.author.formal_name }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p>
|
<p class="date small">Posted by <strong>{{ object.author.formal_name }}</strong> on {{ object.pub_date|date:"F j, Y" }}
|
||||||
{% if object.tags.all %}<p class="blog-tags small">Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
|
{% if object.tags.all %}<span class="blog-tags">/ Tags: {% for tag in object.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</span>{% endif %}
|
||||||
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -15,8 +15,9 @@
|
||||||
{% for entry in blog_entries %}
|
{% for entry in blog_entries %}
|
||||||
<h3><a href="{{ entry.get_absolute_url }}">{{ entry.headline|safe }}</a></h3>
|
<h3><a href="{{ entry.get_absolute_url }}">{{ entry.headline|safe }}</a></h3>
|
||||||
{{ entry.body|safe }}
|
{{ entry.body|safe }}
|
||||||
<p class="date small">Posted by <strong>{{ entry.author.formal_name}}</strong> on {{ entry.pub_date|date:"F j, Y" }}</p>
|
<p class="date small">Posted by <strong>{{ entry.author.formal_name }}</strong> on {{ entry.pub_date|date:"F j, Y" }}
|
||||||
{% if entry.tags.all %}<p class="blog-tags small">Tags: {% for tag in entry.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</p>{% endif %}
|
{% if entry.tags.all %}<span class="blog-tags">/ Tags: {% for tag in entry.tags.all %}<a href="{{ tag.get_absolute_url }}">{{ tag.label }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</span>{% endif %}
|
||||||
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
Loading…
Reference in a new issue