templates/blog/list.html @ ebf95aec0279

Add a meta element to specify the charset as UTF-8.
author Steve Losh <steve@stevelosh.com>
date Thu, 18 Jun 2009 01:48:05 -0400
parents 115fd0ac6843
children (none)
{% extends "blog/base.html" %}
{% load typogrify %}

{% block content %}
    <div id="blog-list">
        {% for entry in entries %}
            <div class="blog-list-entry">
                <h2 class="blog-list-entry-title">
                    <a href="{{ entry.get_absolute_url }}">
                        {{ entry.title|typogrify }}
                    </a>
                </h2>
                <p class="blog-list-entry-snip">{{ entry.snip|typogrify }}</p>
            </div>
        {% endfor %}
        
        {% ifnotequal newer_page older_page  %}
            <div id="blog-list-nav" class="blog-list-entry">
            {% ifnotequal newer_page None %}
                {% ifequal newer_page 0 %}
                    {% url blog-list-newest as new_page %}
                {% else %}
                    {% url blog-list-page newer_page as new_page %}
                {% endifequal %}
                
                <h2 id="blog-list-newer"><a href="{{ new_page }}">
                    Newer &raquo;
                </a></h2>
            {% endifnotequal %}
            {% ifnotequal older_page None %}
                <h2 id="blog-list-older">
                    <a href="{% url blog-list-page older_page %}">
                        &laquo; Older
                    </a>
                </h2>
            {% else %}
                <h2 id="blog-list-older">&nbsp;</h2>
            {% endifnotequal %}
            </div>
        {% endifnotequal %}
    </div>
{% endblock %}