Ver código fonte

Adds basic archive template

Talha Mansoor 11 anos atrás
pai
commit
32a2a7e3f0
1 arquivos alterados com 25 adições e 0 exclusões
  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 %}