fix: use GTIN-local legal favicons
This commit is contained in:
@@ -552,6 +552,8 @@ def link_check(routes: list[tuple[str, str]]) -> list[str]:
|
||||
if target.startswith("/assets/img/") or target.startswith("/assets/fonts/"):
|
||||
if (SITE / target.lstrip("/")).exists():
|
||||
continue
|
||||
if target.startswith("/gtin/") and (SITE / target.lstrip("/")).exists():
|
||||
continue
|
||||
if target == "/assets/fonts/fonts.css":
|
||||
continue
|
||||
problems.append(f"{file.relative_to(SITE)} -> {target}")
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<title>Datenschutz</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="canonical" href="https://desfoto.de/gtin/datenschutz/" />
|
||||
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
|
||||
<style>
|
||||
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; }
|
||||
body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<title>Impressum</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="canonical" href="https://desfoto.de/gtin/impressum/" />
|
||||
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
|
||||
<style>
|
||||
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; }
|
||||
body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<title>Datenschutz</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="canonical" href="https://desfoto.de/gtin/datenschutz/" />
|
||||
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
|
||||
<style>
|
||||
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; }
|
||||
body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<title>Impressum</title>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="canonical" href="https://desfoto.de/gtin/impressum/" />
|
||||
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
|
||||
<style>
|
||||
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; }
|
||||
body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }
|
||||
|
||||
@@ -353,6 +353,7 @@ class Content(unittest.TestCase):
|
||||
self.assertNotIn('href="/datenschutz/"', text)
|
||||
self.assertNotIn('href="/"', text)
|
||||
self.assertNotIn("assets/", text)
|
||||
self.assertIn('href="/gtin/icons/favicon.svg"', text)
|
||||
for value in (
|
||||
LEGAL["business"], LEGAL["owner"], LEGAL["street"], LEGAL["city"],
|
||||
CONTACT["email"], CONTACT["phone"], "§ 5 DDG", LEGAL["w_id"],
|
||||
|
||||
Reference in New Issue
Block a user