Add SEO baseline + rebuild www/ (mobile toc/prefs polish, responsive viewport)
SEO: robots.txt, sitemap.xml, canonical, OG/Twitter tags, JSON-LD (ProfessionalService) on / and /folders/, plus a reused screenshot as og-image.png. prepare-www.mjs now copies robots/sitemap/og-image into the build. Also carries pending mobile layout tweaks (toc/prefs bar, viewport-fit=cover) that were already staged in the working tree.
This commit is contained in:
@@ -37,6 +37,9 @@ await mkdir(join(www, 'folders'), { recursive: true });
|
||||
|
||||
await cp(join(dist, 'assets'), join(www, 'assets'), { recursive: true });
|
||||
await cp(join(root, 'public', 'favicon.svg'), join(www, 'favicon.svg'));
|
||||
await cp(join(root, 'public', 'robots.txt'), join(www, 'robots.txt'));
|
||||
await cp(join(root, 'public', 'sitemap.xml'), join(www, 'sitemap.xml'));
|
||||
await cp(join(root, 'public', 'og-image.png'), join(www, 'og-image.png'));
|
||||
|
||||
const specHtml = await readFile(join(dist, 'spec', 'index.html'), 'utf8');
|
||||
await writeFile(
|
||||
|
||||
Reference in New Issue
Block a user