summaryrefslogtreecommitdiff
path: root/project/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'project/templates/index.html')
-rw-r--r--project/templates/index.html36
1 files changed, 7 insertions, 29 deletions
diff --git a/project/templates/index.html b/project/templates/index.html
index 3a66532..ba5e849 100644
--- a/project/templates/index.html
+++ b/project/templates/index.html
@@ -16,35 +16,13 @@
{% block content %}
<ul class="index">
- <li><a href="/packrat.html">Packrat Parser Combinator Library</a><br>
- <span class="post">(Posted 2/2/2021)</span></li>
-
- <li><a href="/integral.html">Area Under the Curve of a Complex Integral</a><br>
- <span class="post">(Posted 29/12/2018)</span></li>
-
- <li><a href="/steelman.html">D, Parasail, Pascal, and Rust vs The Steelman</a><br>
- <span class="post">(Posted 29/10/2017)</span></li>
-
- <li><a href="/sokoban.html">Sokoban Clone</a><br>
- <span class="post">(Posted 8/8/2017)</span></li>
-
- <li><a href="/sunset.html">Sunset License</a><br>
- <span class="post">(Posted 29/6/2017)</span></li>
-
- <li><a href="/fltkada.html">FLTK Ada Binding</a><br>
- <span class="update">(Updated 21/5/2018)</span></li>
-
- <li><a href="/stvcount.html">Single Transferable Vote Counter</a><br>
- <span class="post">(Posted 19/2/2017)</span></li>
-
- <li><a href="/adapad.html">Adapad</a><br>
- <span class="update">(Updated 8/5/2017)</span></li>
-
- <li><a href="/grasp.html">Grasp Interpreter</a><br>
- <span class="post">(Posted 1/1/2017)</span></li>
-
- <li><a href="/thue2a.html">Thue Version 2a</a><br>
- <span class="post">(Posted 1/1/2017)</span></li>
+ {%- for item in articles -%}
+ {%- if item.updated -%}{%- set postclass = "update" -%}{%- else -%}{%- set postclass = "post" -%}{%- endif -%}
+ {%- if item.updated -%}{%- set postverb = "Updated" -%}{%- else -%}{%- set postverb = "Posted" -%}{%- endif %}
+ <li><a href="{{ item.anchor }}">{{ item.title }}</a><br>
+ <span class="taglist">{{ item.taglist | join(", ") }}</span><br>
+ <span class="{{ postclass }}">({{ postverb }} {{ item.postdate }})</span></li>
+ {%- endfor %}
</ul>
{% endblock %}