mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-06 01:53:56 -06:00
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:
1 parent
79751305b6
commit
00c3e48bcd
2 files changed
+19
No files matched your search
@@ -388,5 +388,21 @@ class LogosAtTheirDisplaySize(unittest.TestCase):
|
|||||||
self.assertIn('src="/retrobios/assets/logos/emudeck.webp"', html)
|
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__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
@@ -74,6 +74,9 @@ export default defineConfig({
|
|||||||
head: [
|
head: [
|
||||||
{ tag: 'link', attrs: { rel: 'icon', type: 'image/svg+xml', href: `${BASE}assets/brand/favicon.svg` } },
|
{ tag: 'link', attrs: { rel: 'icon', type: 'image/svg+xml', href: `${BASE}assets/brand/favicon.svg` } },
|
||||||
{ tag: 'link', attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: `${BASE}assets/brand/apple-touch-icon.png` } },
|
{ tag: 'link', attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: `${BASE}assets/brand/apple-touch-icon.png` } },
|
||||||
|
// Ownership of the URL-prefix property https://abdess.github.io/retrobios/
|
||||||
|
// in Google Search Console. Removing it unverifies the property.
|
||||||
|
{ tag: 'meta', attrs: { name: 'google-site-verification', content: '8SueST3hNHl8_vM-OJJP0rz-ZMlI2DALLpChrwZoGMs' } },
|
||||||
],
|
],
|
||||||
social: [{ icon: 'github', label: 'RetroBIOS on GitHub', href: 'https://github.com/Abdess/retrobios' }],
|
social: [{ icon: 'github', label: 'RetroBIOS on GitHub', href: 'https://github.com/Abdess/retrobios' }],
|
||||||
customCss: ['./src/styles/retrobios.css'],
|
customCss: ['./src/styles/retrobios.css'],
|
||||||
|
|||||||
Reference in new issue
Block a user