From b69887df7258e71834b32614d939e06bb58100d3 Mon Sep 17 00:00:00 2001 From: Guido Jansen Date: Tue, 15 Sep 2026 19:49:01 +0200 Subject: [PATCH] Hide verify page and teaser on non-.nl scopes (only atproto.nl is a trusted verifier) --- src/components/pages/HomePage.astro | 18 ++++++++++-------- src/layouts/Base.astro | 2 +- src/pages/[...lang]/verify.astro | 5 ++++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/components/pages/HomePage.astro b/src/components/pages/HomePage.astro index c3ac3c4..878f231 100644 --- a/src/components/pages/HomePage.astro +++ b/src/components/pages/HomePage.astro @@ -163,15 +163,17 @@ const avatarMembers = members.filter((m) => m.avatar).slice(0, 24); -
-
-
- - {t('verify.cta.teaser')} + {scopeId === 'nl' && ( +
+
+
+ + {t('verify.cta.teaser')} +
+ {t('verify.cta.teaser.btn')}
- {t('verify.cta.teaser.btn')} -
-
+ + )} { upcomingRows.length > 0 && ( diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index ed9b572..172b965 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -214,7 +214,7 @@ const orgLd = { {t('footer.follow')} {t('footer.chat')} {t('nav.about')} - {t('nav.verify')} + {scopeIdForStats === 'nl' && {t('nav.verify')}} {t('footer.goEu')} {t('footer.privacy')} {t('footer.terms')} diff --git a/src/pages/[...lang]/verify.astro b/src/pages/[...lang]/verify.astro index e925c09..02c8ad4 100644 --- a/src/pages/[...lang]/verify.astro +++ b/src/pages/[...lang]/verify.astro @@ -1,8 +1,11 @@ --- import VerifyPage from '../../components/pages/VerifyPage.astro'; import { localePaths } from '../../i18n/paths'; +import { resolveScopeId } from '../../config/scopes'; -export const getStaticPaths = localePaths; +// Verification is only offered by atproto.nl (a trusted verifier). Other scopes skip this page. +export const getStaticPaths = () => + resolveScopeId(process.env.SITE_SCOPE) === 'nl' ? localePaths() : []; const { lang } = Astro.props; --- -- knotmirror 0.0.1