404 handler

This commit is contained in:
ngws committed 2016-09-02 23:47:31 +02:00
1 parent 62ecacd2cd
commit f201d0f9ad
3 files changed
+10 -1

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ def markdown_to_html(input_file, output_dir):
pages.append((dir + '/' + uri,
os.path.normpath(os.path.join(base_dir, path, name))))
builtins = ['/', '/about/', '/about/niels', '/misc/']
builtins = ['/', '/about/', '/about/niels', '/misc/', '/404']
pages = filter(lambda t: t[0] not in builtins, pages)
pages_new = []
for page in pages: