diff --git a/scripts/verify-website.mjs b/scripts/verify-website.mjs
index fec554e..3ac8b4c 100644
--- a/scripts/verify-website.mjs
+++ b/scripts/verify-website.mjs
@@ -30,6 +30,8 @@ const REQUIRED_ASSETS = [
"assets/logo.png",
"assets/favicon.png",
"assets/favicon.svg",
+ "assets/icon-192.png",
+ "assets/icon-512.png",
"assets/social-card.svg",
"assets/social-card.png",
"schemas/defense-manifest-v1.json",
@@ -263,6 +265,13 @@ export function verifyWebsiteDirectory(websiteRoot = resolve(REPO_ROOT, "website
}
// SEO & Structured Metadata Checks
+ const seoPageMatch = /]*data-seo-page=["']([a-z0-9-]+)["']/i.exec(html);
+ if (!seoPageMatch) {
+ errors.push(`${rel}: missing data-seo-page attribute on `);
+ } else {
+ usedI18nKeys.add(`seo.${seoPageMatch[1]}.title`);
+ usedI18nKeys.add(`seo.${seoPageMatch[1]}.desc`);
+ }
if (!/
[^<]{10,}<\/title>/i.test(html)) {
errors.push(`${rel}: missing or too-short `);
}
@@ -275,6 +284,12 @@ export function verifyWebsiteDirectory(websiteRoot = resolve(REPO_ROOT, "website
} else if (sitemapXml && !sitemapXml.includes(`${canonicalMatch[1]}`)) {
errors.push(`${rel}: canonical URL '${canonicalMatch[1]}' is missing from sitemap.xml`);
}
+ if (!/]*hreflang=["']x-default["']/i.test(html)) {
+ errors.push(`${rel}: missing `);
+ }
+ if (!/]*property=["']og:locale["'][^>]*content=["'][^"']+["']/i.test(html)) {
+ errors.push(`${rel}: missing OpenGraph og:locale`);
+ }
if (!/]*property=["']og:title["'][^>]*content=["'][^"']+["']/i.test(html)) {
errors.push(`${rel}: missing OpenGraph og:title`);
}
@@ -284,9 +299,15 @@ export function verifyWebsiteDirectory(websiteRoot = resolve(REPO_ROOT, "website
if (!html.includes('property="og:image" content="https://bla.tools/assets/social-card.png"')) {
errors.push(`${rel}: og:image must reference https://bla.tools/assets/social-card.png`);
}
+ if (!/]*property=["']og:image:type["'][^>]*content=["']image\/png["']/i.test(html)) {
+ errors.push(`${rel}: missing og:image:type image/png`);
+ }
if (!/]*name=["']twitter:card["'][^>]*content=["']summary_large_image["']/i.test(html)) {
errors.push(`${rel}: missing twitter:card summary_large_image`);
}
+ if (!/]*name=["']twitter:image:alt["'][^>]*content=["'][^"']+["']/i.test(html)) {
+ errors.push(`${rel}: missing twitter:image:alt`);
+ }
const jsonLdMatches = [...html.matchAll(/