summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build.py6
-rw-r--r--templates/archive.html13
-rw-r--r--templates/layout.html1
3 files changed, 12 insertions, 8 deletions
diff --git a/scripts/build.py b/scripts/build.py
index e029052..971b8d4 100755
--- a/scripts/build.py
+++ b/scripts/build.py
@@ -24,9 +24,9 @@ def build_entry(jenv, fname, entry, older=None, newer=None):
f.write(rendered)
-def build_archive(jenv, filename, entries):
+def build_archive(jenv, filename, title, entries):
archive_template = jenv.get_template('archive.html')
- rendered = archive_template.render(entries=entries)
+ rendered = archive_template.render(title=title, entries=entries)
with open('out/{}.html'.format(filename), 'w+') as f:
f.write(rendered)
@@ -70,4 +70,4 @@ if __name__ == '__main__':
build_entry(jenv, 'index', published[-1], older=published[-2:-1])
- build_archive(jenv, 'archive', published)
+ build_archive(jenv, 'archive', 'Archive', published)
diff --git a/templates/archive.html b/templates/archive.html
index 506e899..cee6745 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -1,9 +1,12 @@
{% extends 'layout.html' %}
{% block content %}
-<ul id="archive-list">
-{% for entry in entries %}
-<li>{{ entry['date'] }} — <a href="{{ entry['file'] }}.html">{{ entry['title'] }}</a></li>
-{% endfor %}
-</ul>
+<section>
+ <h1>{{ title }}</h1>
+ <ul id="archive-list">
+ {% for entry in entries %}
+ <li>{{ entry['date'] }} — <a href="{{ entry['file'] }}.html">{{ entry['title'] }}</a></li>
+ {% endfor %}
+ </ul>
+</section>
{% endblock %}
diff --git a/templates/layout.html b/templates/layout.html
index 3de91d5..ee2a090 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -40,6 +40,7 @@ article p {
}
ul#archive-list {
list-style-type: none;
+ padding-left: 0;
}
footer {
height: 55px;