Commits

David Chambers committed 3a0a5a5

Reformatted index template to have it generate tidy markup.

  • Participants
  • Parent commits a46dc1d

Comments (0)

Files changed (1)

File templates/index.dhtml

 {% extends "base.dhtml" %}
 {% load mango_extras %}
 {% block header_title %}<h1>{{ SITE_TITLE }}</h1>{% endblock %}
-{% block content %}
-    {% for document in posts|slice:":5" %}
-        {% include "excerpt.dhtml" %}
-    {% empty %}
-        <h2>Welcome to your new blog</h2>
-        <p>It's lookin' a bit empty, though. Get to work!</p>
-    {% endfor %}
-    {% if posts|length > 5 %}
-        <h2>Want more?</h2>
-        <p>Check out the <a href="{% url mango.views.archives %}">archives</a>.</p>
-    {% endif %}
-{% endblock %}
+{% block content %}{% for document in posts|slice:":5" %}{% include "excerpt.dhtml" %}{% empty %}
+            <h2>Welcome to your new blog</h2>
+            <p>It's lookin' a bit empty, though. Get to work!</p>{% endfor %}{% if posts|length > 5 %}
+            <h2>Want more?</h2>
+            <p>Check out the <a href="{% url mango.views.archives %}">archives</a>.</p>{% endif %}{% endblock %}