agdj/core/templates/blog/render_post_summary.html
author Adam Gomaa <code@adam.gomaa.us>
Sun Feb 01 01:35:02 2009 -0500
changeset 416 5a586a8c2f8f
parent 387 0c81a7844279
permissions -rw-r--r--
Switch to date-based URLs everywhere except the feed URLs of old posts, so I don't spam everyone's feedreader.
     1 {% load cache humanize microformats mkdn2 %}
     2 
     3 <div class="post-summary">
     4   <h3><a href="{{ object.urls.view }}">{{ object.title }}</a></h3>
     5 {% with object.public_comments as comments %}
     6   <p>Posted <span class="humanize iso8601">{{ object.pub_date|iso8601 }}</span> - {% if comments %}
     7 {{ comments|length|apnumber|capfirst }} comment{{ comments|pluralize }}
     8 {% else %}No comments{% endif %}
     9     
    10   </p>
    11 {% endwith %}
    12 <div class="tag-container">tagged with 
    13 {% include "blog/render_post_tags_list.html" %}
    14 </div>
    15 <div class="description">{{ object.description|markdown2 }}</div>
    16 </div>