diff --git a/src/html_root.py b/src/html_root.py index cbf8f2d..652719b 100755 --- a/src/html_root.py +++ b/src/html_root.py @@ -93,11 +93,19 @@ def gen_search(): ''')) +def gen_404(): + with open(mylib.path_out('404.html'), 'w') as fp: + fp.write(mylib.template_with_base(''' +
Go back to start page
''')) + + def process(): print('generating root html ...') gen_root() # root index.thml gen_search() # root redirect.html?id=my.bundle.id gen_help() + gen_404() print('')