From 17c3ea295a1f3319308bef11701fe53235ad9df2 Mon Sep 17 00:00:00 2001 From: KoalaDev <6156589+Shik3i@users.noreply.github.com> Date: Thu, 23 Jul 2026 02:59:58 +0200 Subject: [PATCH] Centralize KoalaStuff legal notice --- scripts/test-website-theme.mjs | 8 +- website/404.html | 2 +- website/build.cjs | 12 +- website/datenschutz-de.html | 2 +- website/impressum-de.html | 259 ++------------------------------- website/impressum.html | 28 +--- website/imprint.html | 259 ++------------------------------- website/join.html | 4 +- website/llms.txt | 2 +- website/privacy.html | 2 +- website/site-access-help.html | 2 +- website/template.html | 2 +- 12 files changed, 50 insertions(+), 532 deletions(-) diff --git a/scripts/test-website-theme.mjs b/scripts/test-website-theme.mjs index c4630de..0125dd1 100644 --- a/scripts/test-website-theme.mjs +++ b/scripts/test-website-theme.mjs @@ -180,11 +180,9 @@ if (!/\.legal-inline-link\s*\{[^}]*text-decoration:\s*underline/s.test(legalCss) throw new Error('Legal prose links must use a non-color underline cue'); } for (const [name, page] of [['imprint.html', imprintPage], ['impressum-de.html', germanImprintPage]]) { - if ((page.match(/class="legal-inline-link"/g) || []).length !== 3) { - throw new Error(`${name} must mark all three prose links as legal-inline-link`); - } - if ((page.match(/class="legal-inline-label"/g) || []).length !== 2 || /opacity:\s*0\.6/.test(page)) { - throw new Error(`${name} contact labels must use full-opacity theme text`); + if (!/rel="canonical" href="https:\/\/koalastuff\.net\/legal"/.test(page) + || !/href="https:\/\/koalastuff\.net\/legal"/.test(page)) { + throw new Error(`${name} must point to the central KoalaStuff legal notice`); } } diff --git a/website/404.html b/website/404.html index c1dcd35..31f24bc 100644 --- a/website/404.html +++ b/website/404.html @@ -135,7 +135,7 @@

© 2026 KoalaSync. Open source under the MIT License.

- Legal Notice + Legal Notice Privacy Policy
diff --git a/website/build.cjs b/website/build.cjs index 0b5d78d..692317c 100644 --- a/website/build.cjs +++ b/website/build.cjs @@ -791,13 +791,8 @@ function generateSitemap(websiteDir, wwwDir) { `; - // Static legal pages + // Static project-specific policy and help pages xml += ` - - https://sync.koalastuff.net/imprint${lastmod(['website/imprint.html'])} - monthly - 0.3 - https://sync.koalastuff.net/privacy${lastmod(['website/privacy.html'])} monthly @@ -808,11 +803,6 @@ function generateSitemap(websiteDir, wwwDir) { weekly 0.8 - - https://sync.koalastuff.net/de/impressum${lastmod(['website/impressum-de.html'])} - monthly - 0.3 - https://sync.koalastuff.net/de/datenschutz${lastmod(['website/datenschutz-de.html'])} monthly diff --git a/website/datenschutz-de.html b/website/datenschutz-de.html index 50d75d9..51d122c 100644 --- a/website/datenschutz-de.html +++ b/website/datenschutz-de.html @@ -297,7 +297,7 @@

© 2026 KoalaSync. Open Source unter der MIT-Lizenz.

Keine Relay-Logs. Kein Tracking. Website-Access-Logs werden nach 7 Tagen gelöscht.

- Impressum + Impressum Datenschutz Vergleiche & Anleitungen diff --git a/website/impressum-de.html b/website/impressum-de.html index ec0fb34..7c2c8b6 100644 --- a/website/impressum-de.html +++ b/website/impressum-de.html @@ -1,250 +1,21 @@ - - + + - - - Impressum | KoalaSync - - - - - - - - - - - - - - - - - - - - + + + Impressum | KoalaSync + + + + -