fix: give the home page a descriptive title

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 17:19:25 +02:00
1 parent e56621de42
commit d5dd16dbdb
2 files changed
+13 -1

No files matched your search

+10
View File
@@ -232,5 +232,15 @@ class TheSitemapIsAnnouncedWhereCrawlersLook(unittest.TestCase):
self.assertNotIn("Sitemap: https://", source)
class TheHomeTitleSaysWhatTheSiteIs(unittest.TestCase):
def test_not_the_site_name_twice(self):
from generate_site import SITE_NAME, _browser_title
title = _browser_title(Path("index.md"), SITE_NAME)
self.assertNotEqual(title, SITE_NAME)
self.assertIn("BIOS", title)
if __name__ == "__main__":
unittest.main()