Browse Source

Adds basic archive template

Talha Mansoor 11 years ago
parent
commit
32a2a7e3f0
1 changed files with 25 additions and 0 deletions
  1. 25 0
      templates/archives.html

+ 25 - 0
templates/archives.html

@@ -0,0 +1,25 @@
+{% extends "base.html" %}                                                                                                                                                                                  
+{% block title %}
+All Posts - {{ super() }}
+{% endblock title %}
+
+{% block content %}
+
+<div class="row-fluid">
+    <header class="page_header span10 offset2">
+    <h1><a href="/archives.html">All Posts</a></h1>
+    </header>
+</div>
+<div class="row-fluid">
+    <div class="span8 offset2">
+        <ul class="list-all-articles">
+            {% for article in dates %}
+            <li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
+            <time>{{ article.locale_date }}</time>
+            </li>
+            {% endfor %}
+        </ul>
+    </div>
+</div>
+
+{% endblock content %}