summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-11-15 14:29:49 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-11-15 14:29:49 +0100
commit8f5034eca90df98e60685cd2fcae5eb29de3d555 (patch)
tree924e7865893eede50dde313beafdd75a03451b8d /scripts
parent554a94f8fd5815b165847af586f9c99ad7981485 (diff)
downloadkyblo-8f5034eca90df98e60685cd2fcae5eb29de3d555.tar.xz
Add title to archive
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.py6
1 files changed, 3 insertions, 3 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)