summaryrefslogtreecommitdiff
path: root/project/templates/index.xhtml
diff options
context:
space:
mode:
Diffstat (limited to 'project/templates/index.xhtml')
-rw-r--r--project/templates/index.xhtml28
1 files changed, 28 insertions, 0 deletions
diff --git a/project/templates/index.xhtml b/project/templates/index.xhtml
new file mode 100644
index 0000000..1026136
--- /dev/null
+++ b/project/templates/index.xhtml
@@ -0,0 +1,28 @@
+
+{%- extends "base.xhtml" -%}
+
+
+
+{%- block title -%}Jedidiah Barber's Personal Site{%- 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 -%}
+
+