schedule Nixon quotepost, "Interlude XX", and "The Feeling Is Mutual"
[Ultimately_Untrue_Thought.git] / theme / templates / index.html
index 8f82005..c28077e 100644 (file)
@@ -1,36 +1,22 @@
 {% extends "base.html" %}
 {% block content_title %}{% endblock %}
 
-{% block content %}
-
-{% for article in articles %}
-
-    {% if loop.index == 1 %}
+{% block scripts %}
+  <script src="/theme/js/comment_counts.js"></script>
+{% endblock %}
 
-      <article>
-        <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
-        {{ article.content }}
-      </article>
-
-      <hr />
-
-      {% if loop.length  > 1 %}
-        <div>
-          <h3>Last posts</h3>
-          <ol class="archive">
-      {% endif %}
-    
-    {% elif loop.index < 7 %}
-      <li>
-        {% include 'article_link.inc.html' %}
-      </li>
-    {% endif %}
+{% block content %}
 
+{% for article in articles_page.object_list %}
+  <article>
+    <h1><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h1>
+    {% include 'metadata.inc.html' %}
+    {{ article.content }}
+  </article>
+  <span class="comments-link-container" data-path="/{{ article.url }}" id="{{ article.slug }}-comments-link-container"></span>
+  <hr />
 {% endfor %}
 
-{% if articles|length > 1 %}
-          </ol>
-        </div>
-{% endif %}
+{% include 'pagination.inc.html' %}
 
 {% endblock content %}