feat: verify the site in Search Console

Adds the google-site-verification meta tag for the URL-prefix property https://abdess.github.io/retrobios/, with a test that keeps it in the head.
This commit is contained in:
Abdessamad Derraz committed 2026-10-28 12:10:59 +01:00
1 parent 79751305b6
commit 00c3e48bcd
2 files changed
+19

No files matched your search

+16
View File
@@ -388,5 +388,21 @@ class LogosAtTheirDisplaySize(unittest.TestCase):
self.assertIn('src="/retrobios/assets/logos/emudeck.webp"', html)
class SearchConsoleOwnership(unittest.TestCase):
"""Search Console checks the tag on every recrawl: without it the
property goes unverified and the sitemap stops being read."""
def test_the_head_carries_the_verification_tag(self):
self.assertIn("{ tag: 'meta', attrs: { name: 'google-site-verification', "
"content: '8SueST3hNHl8_vM-OJJP0rz-ZMlI2DALLpChrwZoGMs' } }",
CONFIG.read_text(encoding="utf-8"))
@unittest.skipUnless((DIST / "index.html").is_file(), "site not built")
def test_the_home_page_serves_it(self):
self.assertIn('<meta name="google-site-verification" '
'content="8SueST3hNHl8_vM-OJJP0rz-ZMlI2DALLpChrwZoGMs"',
(DIST / "index.html").read_text(encoding="utf-8"))
if __name__ == "__main__":
unittest.main()