summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-21 20:44:19 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-21 20:44:19 +0200
commit8cdfd9ea1821fb8ef508804d1f395fe1da657ca6 (patch)
tree414cc2c70fef56760ed4d7329218469af274ab69 /scripts
parent9203582d01790aa6b00500f168764efc780d91a1 (diff)
downloadwebsite-8cdfd9ea1821fb8ef508804d1f395fe1da657ca6.tar.xz
bupa: fix typo..
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/bupa3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/bupa b/scripts/bupa
index dfb03df..971cfb6 100755
--- a/scripts/bupa
+++ b/scripts/bupa
@@ -56,6 +56,7 @@ def build_entry(filename, atom_feed):
entry = parse(filename)
entry.id = filename_to_id(filename)
entry.page = filename_to_extless(filename) + '.html'
+ entry.srcpage = filename_to_extless(filename) + '.rst'
entry.body = reST_to_html(entry.body)
atom_feed.add(
title=entry.title,
@@ -100,7 +101,7 @@ def build_page(jinja_env, template, pagename):
page = parse('src/'+pagename+'.rst')
page.body = reST_to_html(page.body)
page.article_id = pagename
- write_page(page, page.header, pagename+'html', template, jinja_env)
+ write_page(page, page.header, pagename+'.html', template, jinja_env)
def write_page(page, header, filename, template, jinja_env):
template = jinja_env.get_template(template)