agdj/core/templates/blog/single_post.html
author Adam Gomaa <code@adam.gomaa.us>
Sun Feb 01 01:35:02 2009 -0500
changeset 416 5a586a8c2f8f
parent 373 c4108bc757bc
child 417 41bb13fc4f7d
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 {% extends "blog/blog.html" %}
     2 {% load mkdn2 %}
     3 {% load microformats %}
     4 
     5 {% block title %}{{ post.title }}{% endblock %}
     6 
     7 {% block header %}
     8   <h1>
     9     <a href="{% url agdj.blog.views.post_list %}">blog:</a>
    10     <a href="{{ post.urls.view }}">{{ post.title }}</a></h1>
    11 {% endblock %}
    12 
    13 {% block metadata %}
    14 <p class="timestamp">
    15   <a href="{% url index %}">posted
    16     <span class="humanize iso8601">{{ post.pub_date|iso8601 }}</span></a></p>
    17 <div class="tag-container">tagged: 
    18 {% with post as object %}
    19 {% include "blog/render_post_tags_list.html" %}
    20 {% endwith %}
    21 </div>
    22 {% endblock %}
    23 
    24 {% block content %}
    25 
    26 <div class="post-content">
    27 {{ post.source|markdown2 }}
    28 </div>
    29 <div class="comments">
    30   <h3>Comments</h3>
    31   <p>{{ post.spam_count }} spam comments omitted.</p>
    32   <form class="add nospam-me" action="" method="post">
    33     <fieldset class="collapsed">
    34       <legend>Add Comment</legend>
    35       <p>Comments can
    36         use <a href="http://daringfireball.net/projects/markdown/">Markdown</a>
    37         formatting. Raw HTML will be stripped.</p>
    38       {{ comment_form.as_p }}
    39       <input type="submit" class="submit" value="Add Comment" />
    40     </fieldset>
    41   </form>
    42 {% for object in comments %}
    43 {% include "blog/render_comment.html" %}
    44 {% endfor %}
    45 </div>
    46 {% endblock %}