mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Fixup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user