diff --git a/notes2web.py b/notes2web.py index 74c218d..bad6077 100755 --- a/notes2web.py +++ b/notes2web.py @@ -41,6 +41,7 @@ def get_files(folder): return markdown, plaintext, other + def git_filehistory(working_dir, filename): print(f"{pathlib.Path(filename).relative_to(working_dir)=}") git_response = subprocess.run( @@ -313,7 +314,13 @@ def main(args): ) for entry in indexentries: - html += f"
{entry['title']}{'/' if entry['isdirectory'] else ''}
" + html += ( + '
' + f'' + f'{entry["title"]}{"/" if entry["isdirectory"] else ""}' + '' + '
' + ) html += INDEX_TEMPLATE_FOOT with open(directory.joinpath('index.html'), 'w+') as fp: