Fix the document title (needs positional argument).

This commit is contained in:
L. Karkkainen 2023-01-27 05:39:45 +00:00
parent b5175238fb
commit faf1ff8d4f
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class AutoIndex(BasePage):
table.autoindex td:last-child { text-align: right; } table.autoindex td:last-child { text-align: right; }
""" """
) )
TITLE = "📁 File browser" TITLE = "File browser"
def __init__(self, files: Iterable[FileInfo], url: str) -> None: def __init__(self, files: Iterable[FileInfo], url: str) -> None:
super().__init__() super().__init__()

View File

@ -31,7 +31,7 @@ class BasePage(ABC):
TITLE = "Unknown" TITLE = "Unknown"
def __init__(self) -> None: def __init__(self) -> None:
self.doc = Document(title=self.TITLE, lang="en") self.doc = Document(self.TITLE, lang="en")
@property @property
def style(self) -> str: def style(self) -> str: