fix: use GTIN-local legal favicons

This commit is contained in:
desfoto automation
2026-09-25 19:51:41 +02:00
parent 89b8ca2283
commit 8be63309d3
6 changed files with 7 additions and 0 deletions

View File

@@ -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 target.startswith("/assets/img/") or target.startswith("/assets/fonts/"):
if (SITE / target.lstrip("/")).exists(): if (SITE / target.lstrip("/")).exists():
continue continue
if target.startswith("/gtin/") and (SITE / target.lstrip("/")).exists():
continue
if target == "/assets/fonts/fonts.css": if target == "/assets/fonts/fonts.css":
continue continue
problems.append(f"{file.relative_to(SITE)} -> {target}") problems.append(f"{file.relative_to(SITE)} -> {target}")

View File

@@ -6,6 +6,7 @@
<title>Datenschutz</title> <title>Datenschutz</title>
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<link rel="canonical" href="https://desfoto.de/gtin/datenschutz/" /> <link rel="canonical" href="https://desfoto.de/gtin/datenschutz/" />
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
<style> <style>
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; } :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; } body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

View File

@@ -6,6 +6,7 @@
<title>Impressum</title> <title>Impressum</title>
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<link rel="canonical" href="https://desfoto.de/gtin/impressum/" /> <link rel="canonical" href="https://desfoto.de/gtin/impressum/" />
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
<style> <style>
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; } :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; } body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

View File

@@ -6,6 +6,7 @@
<title>Datenschutz</title> <title>Datenschutz</title>
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<link rel="canonical" href="https://desfoto.de/gtin/datenschutz/" /> <link rel="canonical" href="https://desfoto.de/gtin/datenschutz/" />
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
<style> <style>
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; } :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; } body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

View File

@@ -6,6 +6,7 @@
<title>Impressum</title> <title>Impressum</title>
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<link rel="canonical" href="https://desfoto.de/gtin/impressum/" /> <link rel="canonical" href="https://desfoto.de/gtin/impressum/" />
<link rel="icon" href="/gtin/icons/favicon.svg" type="image/svg+xml" />
<style> <style>
:root { color-scheme: light; font: 16px/1.65 system-ui, sans-serif; color: #202124; background: #fff; } :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; } body { box-sizing: border-box; max-width: 42rem; margin: 0 auto; padding: 2.5rem 1.25rem; }

View File

@@ -353,6 +353,7 @@ class Content(unittest.TestCase):
self.assertNotIn('href="/datenschutz/"', text) self.assertNotIn('href="/datenschutz/"', text)
self.assertNotIn('href="/"', text) self.assertNotIn('href="/"', text)
self.assertNotIn("assets/", text) self.assertNotIn("assets/", text)
self.assertIn('href="/gtin/icons/favicon.svg"', text)
for value in ( for value in (
LEGAL["business"], LEGAL["owner"], LEGAL["street"], LEGAL["city"], LEGAL["business"], LEGAL["owner"], LEGAL["street"], LEGAL["city"],
CONTACT["email"], CONTACT["phone"], "§ 5 DDG", LEGAL["w_id"], CONTACT["email"], CONTACT["phone"], "§ 5 DDG", LEGAL["w_id"],