summaryrefslogtreecommitdiff
path: root/project/templates/index.xhtml
blob: ef76465bf64bb74c6fbc54c6ff0e579c6bc393ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

{%- extends "base_plain.xhtml" -%}



{%- block title -%}Jedidiah Barber's Personal Site{%- endblock -%}



{%- block footer -%}{{ plain_footer ("index.xhtml") }}{%- endblock -%}



{%- block style %}
    <link href="/css/index.css" rel="stylesheet" />
{% endblock -%}



{%- block content %}
<ul class="index">
    {%- 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 -%}