Forráskód Böngészése

Changes index page to be more approprites for a thesis

Caleb Fangmeier 4 éve
szülő
commit
97edc1ce5f
1 módosított fájl, 3 hozzáadás és 13 törlés
  1. 3 13
      templates/index.html

+ 3 - 13
templates/index.html

@@ -87,23 +87,13 @@
     <div class="row-fluid">
         <div class="{{css_class}}">
             <header>
-            <h1 id="recent-posts">Recent Posts <a id="allposts" href="{{ SITEURL }}/archives.html">all posts</a></h1>
+            <h1 id="recent-posts">Chapters</h1>
             </header>
         <div class="recent-posts">
-            {% for article in articles %}
-            {% from '_includes/_defaults.html' import RECENT_ARTICLES_COUNT with context %}
-            {% if loop.index0 < RECENT_ARTICLES_COUNT %}
+            {% for article in articles|sort(attribute='filename') %}
             <article>
-                <a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }} {%if article.subtitle %} <small> {{ article.subtitle }} </small> {% endif %} </a>
-                <section>
-                    posted in
-                <a href="{{ SITEURL }}/categories.html#{{ article.category.slug }}-ref">{{ article.category }}</a>
-                <div class="recent-posts-time">
-                <time pubdate="pubdate" datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time>
-                </div>
-                </section>
+              <a href="{{ SITEURL }}/{{ article.url }}">{{"Chapter %d: %s" % (loop.index0, article.title) }}</a>
             </article>
-            {% endif %}
             {% endfor %}
         </div>
         </div>