This extra cleaning up appears to be necessary now

This commit is contained in:
Niels G. W. Serup 2024-03-22 18:12:09 +01:00
parent 6c357f8d76
commit 343a3a1f46
No known key found for this signature in database
GPG Key ID: 38EEEBCE67324F19
1 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,8 @@ def markdown_to_html(input_file, output_dir):
pages = []
for path, subdirs, subfiles in os.walk(site_dir):
dir = path
if dir.startswith(site_dir):
dir = path[len(site_dir):]
if dir.startswith('./'):
dir = dir[1:]
if dir.startswith('/site'):