This commit is contained in:
Oleh Prypin
2024-03-16 16:14:42 +01:00
parent 322ba7b0cf
commit 054f979970

View File

@@ -252,6 +252,7 @@ class Page(StructureItem):
if self.is_homepage:
return 'Home'
title = self.file.name.replace('-', ' ').replace('_', ' ')
# Capitalize if the filename was all lowercase, otherwise leave it as-is.
if title.lower() == title: