Small improvements

This commit is contained in:
2022-08-14 18:26:18 +02:00
parent be37e2d845
commit 6aa5fe8eb1
4 changed files with 25 additions and 14 deletions

View File

@ -63,7 +63,7 @@ def GetConfMenu(Entries, MarkdownExts):
for i in Entries:
e = Entries[i]
if not ((e.startswith('<') or e.startswith('[') or e.startswith('- ')) and (e.endswith('>') or e.endswith(')') or e.endswith('}'))):
if not (e.lower().endswith('.html') or e.lower().endswith('.htm')):
if not e.lower().endswith(FileExtensions['HTML']):
e += '.html'
Menu[int(i)] = e
return Menu