Forráskód Böngészése

Add English Ireland visa appointment guides and blog SEO foundation

zhangwei123 1 hónapja
szülő
commit
4e4237e47c
60 módosított fájl, 645 hozzáadás és 5 törlés
  1. 3 0
      docs/editorial/archive/README.md
  2. 8 0
      docs/editorial/archive/italy-provisional-2026-10-08.json
  3. 40 0
      docs/editorial/blog-verification.md
  4. 6 0
      next.config.js
  5. 4 1
      package.json
  6. 49 0
      scripts/check-blog-browser.py
  7. 72 0
      scripts/check-blog-http.mjs
  8. 82 0
      scripts/check-blog.mjs
  9. 107 0
      seo_opt/BLUEPRINT.md
  10. 0 0
      src/app/(app)/admin/accounts/page.tsx
  11. 0 0
      src/app/(app)/admin/agent/page.tsx
  12. 0 0
      src/app/(app)/admin/configurations/page.tsx
  13. 0 0
      src/app/(app)/admin/layout.tsx
  14. 0 0
      src/app/(app)/admin/node-configurations/page.tsx
  15. 0 0
      src/app/(app)/admin/orders/new/page.tsx
  16. 0 0
      src/app/(app)/admin/orders/page.tsx
  17. 0 0
      src/app/(app)/admin/page.tsx
  18. 0 0
      src/app/(app)/admin/payments/page.tsx
  19. 0 0
      src/app/(app)/admin/plugins/page.tsx
  20. 0 0
      src/app/(app)/admin/products/page.tsx
  21. 0 0
      src/app/(app)/admin/proxies/page.tsx
  22. 0 0
      src/app/(app)/admin/settlement/page.tsx
  23. 0 0
      src/app/(app)/admin/tasks/page.tsx
  24. 0 0
      src/app/(app)/admin/tickets/page.tsx
  25. 0 0
      src/app/(app)/admin/users/page.tsx
  26. 0 0
      src/app/(app)/contact/page.tsx
  27. 0 0
      src/app/(app)/cookie-policy/page.tsx
  28. 0 0
      src/app/(app)/create-order/[id]/page.tsx
  29. 0 0
      src/app/(app)/dashboard/page.tsx
  30. 0 0
      src/app/(app)/dashboard/settings/page.tsx
  31. 3 2
      src/app/(app)/layout.tsx
  32. 0 0
      src/app/(app)/login/page.tsx
  33. 0 0
      src/app/(app)/page.tsx
  34. 0 0
      src/app/(app)/payment/[id]/page.tsx
  35. 0 0
      src/app/(app)/payment/confirm/page.tsx
  36. 0 0
      src/app/(app)/privacy/page.tsx
  37. 0 0
      src/app/(app)/refund-policy/page.tsx
  38. 0 0
      src/app/(app)/services/page.tsx
  39. 0 0
      src/app/(app)/slots/page.tsx
  40. 0 0
      src/app/(app)/terms/page.tsx
  41. 16 0
      src/app/(blog-en)/blogs/[slug]/page.tsx
  42. 6 0
      src/app/(blog-en)/blogs/layout.tsx
  43. 9 0
      src/app/(blog-en)/blogs/page.tsx
  44. 16 0
      src/app/(blog-localized)/[locale]/blogs/[slug]/page.tsx
  45. 12 0
      src/app/(blog-localized)/[locale]/blogs/page.tsx
  46. 11 0
      src/app/(blog-localized)/[locale]/layout.tsx
  47. 7 0
      src/app/robots.ts
  48. 9 0
      src/app/sitemap.ts
  49. 10 2
      src/components/Navbar.tsx
  50. 18 0
      src/components/blog/BlogShell.tsx
  51. 41 0
      src/components/blog/BlogViews.tsx
  52. 0 0
      src/components/blog/blog.css
  53. 17 0
      src/content/blog/approved-inventory.json
  54. 13 0
      src/content/blog/articles.json
  55. 19 0
      src/lib/blog/data.ts
  56. 39 0
      src/lib/blog/metadata.ts
  57. 10 0
      src/lib/blog/translations.ts
  58. 16 0
      src/lib/blog/types.ts
  59. 1 0
      src/lib/i18n/locales/en.ts
  60. 1 0
      src/lib/i18n/locales/zh.ts

+ 3 - 0
docs/editorial/archive/README.md

@@ -0,0 +1,3 @@
+# Provisional Italy research archive
+
+These three English drafts were produced on 2026-10-08 before keyword and service-scope research was complete. They are retained solely as background, excluded from the active blog collection, route generation, metadata and sitemap. They are not approved for publication. The current approved implementation scope is the English Netherlands, Greece and Denmark appointment guides listed in `src/content/blog/approved-inventory.json`.

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 8 - 0
docs/editorial/archive/italy-provisional-2026-10-08.json


+ 40 - 0
docs/editorial/blog-verification.md

@@ -0,0 +1,40 @@
+# English appointment guides: local verification
+
+Date: 2026-10-09. Repository baseline: `37aed62fa278a6149df2ee937cc4bf13edd969a4` (`jerry/web-ui`). Read-only remote HEAD matched before implementation. No commit, push, deployment, Search Console submission or backend mutation is included.
+
+## Reviewed content and scope
+
+The approved first cohort is three English guides, in this order:
+
+- `/blogs/netherlands-visa-appointments-dublin`
+- `/blogs/greece-visa-appointments-dublin`
+- `/blogs/denmark-visa-appointments-dublin`
+
+Each guide includes its official booking route, preparation and availability guidance rather than splitting out thin checklist/no-slots articles. Independent factual review passed on 2026-10-09 after correcting three minor wording points. The Netherlands self-booking/avoid-intermediary warning remains prominent before commercial CTAs. Greece distinguishes Embassy-linked categories and confirmation; Denmark avoids a fixed processing-time promise where official pages differ. The product is accurately described as optional independent automatic booking, with no official affiliation or guaranteed visa. Existing service/refund policies were not rewritten.
+
+Active content SHA-256: `c83febff4928cc8e8e9861f9ea28de5b4d5a3d202e8c77f9752d9b0720c0d720`. The integrated JSON is identical to the final reviewed author handoff except for the explicitly approved `published:true` local-eligibility flags. No article translations are integrated. The old Italy drafts are excluded from the active collection and retained only in the archive alongside this document.
+
+`published:true` is renderer eligibility, not evidence of public publication. `BLOG_INDEXING_ENABLED` is a separate build-time gate, defaulting to false. A default build renders review pages with noindex and an empty sitemap; noindex is not access control. Setting the flag true requires a rebuild and separate deployment authorization before any public release.
+
+## Checks
+
+- `node scripts/check-blog.mjs`: PASS. Actual inventory/schema/source/internal-link checks and in-memory publication/translation/sitemap fixtures. Fixtures do not publish synthetic pages or modify editorial records.
+- `BLOG_INDEXING_ENABLED=true node scripts/check-blog.mjs --release`: PASS. Exactly the approved three English records; obsolete 18-page expectation removed.
+- Production build with `BLOG_INDEXING_ENABLED=true`, `NEXT_PUBLIC_API_URL=http://127.0.0.1:9`, and `NEXT_TELEMETRY_DISABLED=1`: PASS. Existing Next build skips ESLint, so this is not a lint pass.
+- `node_modules/.bin/tsc --noEmit`: PASS.
+- Explicit focused ESLint (`--no-eslintrc`, TypeScript parser/plugin, unused-variable and no-explicit-any rules) over the new blog/SEO TypeScript: PASS.
+- Indexed production-server `scripts/check-blog-http.mjs`: PASS. Four server-rendered English pages; title/description/lang/canonical/OG/Article/Breadcrumb/source checks; exactly four sitemap URLs; 13 unknown/excluded routes including archived Italy and absent translations return 404; query canonical stays clean; ten pre-existing route GET renders and private noindex headers pass. These GET checks are not authenticated workflow or payment end-to-end tests.
+- Default noindex production build and HTTP suite: PASS (exit 0). Final local build restored to `BLOG_INDEXING_ENABLED=false`, with all four preview pages noindex and an empty sitemap.
+- Independent technical reviewer: source, fixture/release-gate, indexed HTTP and final default-noindex HTTP checks all independently passed (exit 0).
+- `git diff --check`: PASS before final packaging; rerun after any later edit.
+
+## Explicit limits
+
+- Full `npm run lint` is blocked by the repository's existing missing `eslint-config-next` while `.eslintrc.json` extends `next/core-web-vitals`. Dependency scope was preserved; focused lint is not a substitute for a full lint pass.
+- Desktop/mobile screenshots and interactive browser checks were attempted with the provided Chromium/Playwright runtime but blocked before page load: Chromium `process_singleton_posix.cc` socket creation returned `Operation not permitted`. One approved escalated retry encountered the same restriction. No screenshots, visual approval, keyboard/navigation pass, or browser layout claim is made. The optional browser test script is retained for an environment where Chromium can launch.
+- No live SEO, indexing, traffic, ranking, payment, booking or conversion outcome has been measured. Official links were editorially checked; no third-party account or booking form was submitted.
+- Existing business pages are preserved through route-group moves. The existing root layout only adjusts its CSS import and conditionally includes blog navigation; crossing separate root shells uses full navigation.
+
+## Before a future release
+
+Resolve full-lint tooling and complete visual/interactive QA. Obtain explicit approval of the current version and publication action. Run the release gate, rebuild with the indexing flag true, verify the exact candidate URL/sitemap set, then verify the authorized deployed version separately. Do not treat local eligibility, a successful build or this document as deployment permission.

+ 6 - 0
next.config.js

@@ -1,6 +1,12 @@
 /** @type {import('next').NextConfig} */
 const nextConfig = {
   output: "standalone",
+  async headers() {
+    return ['admin', 'dashboard', 'login', 'payment', 'create-order'].map(segment => ({
+      source: `/${segment}/:path*`,
+      headers: [{ key: 'X-Robots-Tag', value: 'noindex, nofollow' }],
+    }));
+  },
   async rewrites() {
     return [
       {

+ 4 - 1
package.json

@@ -6,7 +6,10 @@
         "dev": "next dev",
         "build": "next build",
         "start": "next start",
-        "lint": "next lint"
+        "lint": "next lint",
+        "check:blog": "node scripts/check-blog.mjs",
+        "check:blog:http": "node scripts/check-blog-http.mjs",
+        "check:blog:release": "node scripts/check-blog.mjs --release"
     },
     "dependencies": {
         "@monaco-editor/react": "^4.7.0",

+ 49 - 0
scripts/check-blog-browser.py

@@ -0,0 +1,49 @@
+"""Optional local browser QA. Requires Playwright for Python and Chromium.
+Run against the built local app; no official booking site or service form is submitted.
+"""
+import json
+import os
+from pathlib import Path
+from playwright.sync_api import sync_playwright
+
+base = os.environ.get('BLOG_TEST_URL', 'http://127.0.0.1:3108')
+articles = json.loads(Path('src/content/blog/articles.json').read_text())
+output = Path(os.environ.get('BLOG_SCREENSHOT_DIR', '/tmp/blog-foundation-screenshots'))
+output.mkdir(parents=True, exist_ok=True)
+with sync_playwright() as p:
+    browser = p.chromium.launch(executable_path=os.environ.get('CHROMIUM_PATH', '/usr/bin/chromium'), headless=True, args=['--no-sandbox'])
+    page = browser.new_page(viewport={'width': 1440, 'height': 1080}, device_scale_factor=1)
+    errors = []
+    page.on('pageerror', lambda error: errors.append(str(error)))
+    response = page.goto(base + '/blogs', wait_until='networkidle')
+    assert response.status == 200
+    assert page.locator('html').get_attribute('lang') == 'en'
+    assert page.locator('h1').count() == 1
+    assert page.locator('.blog-card').count() == 3
+    page.screenshot(path=str(output / 'index-desktop.png'), full_page=True)
+    for article in articles:
+        url = base + '/blogs/' + article['slug']
+        page.goto(url, wait_until='networkidle')
+        assert page.locator('h1').inner_text() == article['title']
+        assert page.locator('.blog-button').get_attribute('href') == article['officialBooking']['url']
+        assert page.locator('.blog-prose h2').count() >= 3
+        assert page.locator('html').get_attribute('lang') == 'en'
+        page.screenshot(path=str(output / (article['slug'] + '-desktop.png')), full_page=True)
+        page.locator('.blog-breadcrumb a').click()
+        page.wait_for_url(base + '/blogs')
+        page.go_back(wait_until='networkidle')
+        assert page.url == url
+        page.reload(wait_until='networkidle')
+        assert page.locator('h1').inner_text() == article['title']
+        page.set_viewport_size({'width': 390, 'height': 844})
+        assert page.evaluate('document.documentElement.scrollWidth <= window.innerWidth'), 'Horizontal overflow'
+        page.screenshot(path=str(output / (article['slug'] + '-mobile.png')), full_page=True)
+        page.set_viewport_size({'width': 1440, 'height': 1080})
+    page.goto(base + '/blogs', wait_until='networkidle')
+    page.keyboard.press('Tab')
+    assert page.locator('.blog-skip').evaluate('(el) => el === document.activeElement')
+    page.keyboard.press('Enter')
+    assert page.url.endswith('#blog-main')
+    assert not errors, errors
+    browser.close()
+print('PASS: desktop and 390px mobile rendering, 3 articles, internal navigation/back/reload, skip link, no overflow or uncaught page errors. Screenshots:', output)

+ 72 - 0
scripts/check-blog-http.mjs

@@ -0,0 +1,72 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+const base = process.env.BLOG_TEST_URL || 'http://127.0.0.1:3108';
+const indexing = process.env.BLOG_INDEXING_ENABLED === 'true';
+const approvedInventory = JSON.parse(fs.readFileSync('src/content/blog/approved-inventory.json', 'utf8'));
+const all = JSON.parse(fs.readFileSync('src/content/blog/articles.json', 'utf8'));
+const visible = all.filter(a => !indexing || a.published);
+const published = all.filter(a => a.published);
+const pathFor = a => `${a.locale === 'en' ? '' : `/${a.locale}`}/blogs/${a.slug}`;
+const indexFor = locale => `${locale === 'en' ? '' : `/${locale}`}/blogs`;
+let checked = 0;
+for (const locale of new Set(visible.map(a => a.locale))) {
+  const records = [{ locale, path: indexFor(locale) }, ...visible.filter(a => a.locale === locale).map(a => ({ ...a, path: pathFor(a) }))];
+  for (const a of records) {
+    const response = await fetch(`${base}${a.path}`);
+    assert.equal(response.status, 200, a.path);
+    assert.equal(response.headers.get('x-robots-tag'), null, `Private route header leaked onto blog: ${a.path}`);
+    const html = await response.text();
+    assert(html.includes(`<html lang="${locale}"`), `Wrong HTML language: ${a.path}`);
+    assert.equal((html.match(/<html\b/g) || []).length, 1, 'Nested HTML root');
+    assert(html.includes(`rel="canonical" href="https://text.skin${a.path}"`), `Wrong canonical: ${a.path}`);
+    assert(html.includes(`name="robots" content="${indexing ? 'index' : 'noindex'}, follow"`), `Wrong robots: ${a.path}`);
+    assert(/<title>[^<]+STRATA<\/title>/.test(html), `Missing title: ${a.path}`);
+    assert(/name="description" content="[^"]+"/.test(html));
+    assert(html.includes(`property="og:url" content="https://text.skin${a.path}"`));
+    const variants = a.id ? published.filter(b => b.id === a.id) : [...new Set(published.map(b => b.locale))].map(locale => ({ locale }));
+    for (const b of variants) assert(html.includes(`hrefLang="${b.locale}" href="https://text.skin${b.id ? pathFor(b) : indexFor(b.locale)}"`), `Missing SEO alternate ${a.path} → ${b.locale}`);
+    const alternateCount = (html.match(/rel="alternate" hrefLang=/g) || []).length;
+    assert.equal(alternateCount, variants.length + (variants.some(b => b.locale === 'en') ? 1 : 0), `Unexpected alternate: ${a.path}`);
+    assert(!html.includes('nav.blogs'), 'Untranslated key');
+    if (a.id) {
+      assert(/<h1>.+?<\/h1>/.test(html), 'Missing server-rendered heading');
+      assert(/<h2>.+?<\/h2>/.test(html), 'Missing server-rendered article body');
+      const schema = JSON.parse(html.match(/<script type="application\/ld\+json">(.*?)<\/script>/s)[1]);
+      assert.equal(schema[0]['@type'], 'Article');
+      assert.equal(schema[0].inLanguage, locale);
+      assert.equal(schema[1]['@type'], 'BreadcrumbList');
+      assert(!('datePublished' in schema[0]), 'Invented publish date');
+      for (const source of a.sources) assert(html.includes(source.url.replace(/&/g, '&amp;')), `Missing source: ${source.url}`);
+      assert(html.includes(a.officialBooking.url.replace(/&/g, '&amp;')), 'Missing destination-specific official CTA');
+      assert(!html.includes('prenotami.esteri.it'), 'Stale Italy CTA');
+    }
+    checked++;
+  }
+}
+for (const route of ['/xx/blogs', '/en/blogs', '/de/blogs', '/fr/blogs', '/es/blogs', '/it/blogs', '/pt/blogs', '/blogs/nonexistent-guide', '/de/blogs/nonexistent-guide', '/blogs/italy-visa-appointments-dublin-prenotami', '/blogs/no-italy-visa-appointments-dublin', '/blogs/italy-tourist-visa-documents-ireland', '/nonexistent-route']) {
+  assert.equal((await fetch(`${base}${route}`)).status, 404, `Should 404: ${route}`);
+}
+for (const route of ['/','/services','/slots','/login','/dashboard','/dashboard/settings','/admin','/payment/test','/payment/confirm','/create-order/test']) {
+  const response = await fetch(`${base}${route}`);
+  assert.equal(response.status, 200, `Old route regression: ${route}`);
+  const html = await response.text(); assert(html.includes('<html lang="zh-CN"'), `Old root altered: ${route}`);
+  if (/^\/(login|dashboard|admin|payment|create-order)(\/|$)/.test(route)) assert.equal(response.headers.get('x-robots-tag'), 'noindex, nofollow', `Missing privacy indexing header: ${route}`);
+}
+const queryResponse = await fetch(`${base}/blogs?utm_source=qa`);
+assert.equal(queryResponse.status, 200);
+const queryHtml = await queryResponse.text();
+assert(queryHtml.includes('rel="canonical" href="https://text.skin/blogs"'), 'Query-bearing index canonical must remain clean');
+assert(!queryResponse.headers.get('link')?.includes('hreflang'), 'Unexpected conflicting HTTP hreflang');
+const sitemap = await (await fetch(`${base}/sitemap.xml`)).text();
+const urls = [...sitemap.matchAll(/<loc>(.*?)<\/loc>/g)].map(m => m[1]);
+assert.equal(urls.length, indexing ? published.length + new Set(published.map(a => a.locale)).size : 0);
+if (indexing) {
+  const expectedUrls = ['https://text.skin/blogs', ...approvedInventory.map(a => `https://text.skin/blogs/${a.slug}`)].sort();
+  assert.equal(expectedUrls.length, 4, 'Approved launch scope is 3 English guides plus index');
+  assert.deepEqual([...urls].sort(), expectedUrls, 'Sitemap must exactly match approved English cohort');
+}
+for (const url of urls) assert(url.startsWith('https://text.skin/') && /\/blogs(?:\/|$)/.test(url));
+const robots = await (await fetch(`${base}/robots.txt`)).text();
+assert(robots.includes('Disallow: /api/'));
+assert(!/Disallow: \/(?:blogs|admin|dashboard|login|payment|create-order)/.test(robots));
+console.log(`PASS: ${checked} server-rendered blog pages; language, metadata, sources, structured data; 13 excluded/unknown routes; query canonical; 10 existing routes; private headers; sitemap and robots.`);

+ 82 - 0
scripts/check-blog.mjs

@@ -0,0 +1,82 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import path from 'node:path';
+import vm from 'node:vm';
+import ts from 'typescript';
+const root = process.cwd();
+const articles = JSON.parse(fs.readFileSync('src/content/blog/articles.json', 'utf8'));
+const locales = ['en', 'de', 'fr', 'es', 'it', 'pt'];
+const inventory = JSON.parse(fs.readFileSync('src/content/blog/approved-inventory.json', 'utf8'));
+assert.deepEqual(articles.map(a => `${a.locale}/${a.id}/${a.slug}`).sort(), inventory.map(a => `${a.locale}/${a.id}/${a.slug}`).sort(), 'Active collection must match the approved topic/locale/slug inventory');
+const keys = new Set();
+for (const a of articles) {
+  assert(locales.includes(a.locale), `Invalid locale: ${a.locale}`);
+  assert(/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(a.slug), `Invalid slug: ${a.slug}`);
+  assert(!keys.has(`${a.locale}/${a.slug}`), `Duplicate route: ${a.locale}/${a.slug}`);
+  keys.add(`${a.locale}/${a.slug}`);
+  assert(typeof a.published === 'boolean');
+  assert(a.title.length > 10 && a.description.length > 30 && a.body.length > 1000, `Thin content: ${a.id}/${a.locale}`);
+  assert(/^\d{4}-\d{2}-\d{2}$/.test(a.reviewedAt) && Number.isFinite(Date.parse(a.reviewedAt)));
+  assert(!/<\/?(?:script|iframe|html|body)\b/i.test(a.body), 'HTML is not allowed');
+  assert(!/prenotami|italy-visa/i.test(a.body), 'Archived Italy content must not leak into this cohort');
+  assert(a.sources.length > 0);
+  assert(a.destinationLabel && a.officialBooking?.label);
+  assert(new URL(a.officialBooking.url).protocol === 'https:');
+  assert(a.sources.some(source => source.url === a.officialBooking.url), 'Official CTA must be a verified source');
+  for (const source of a.sources) assert(new URL(source.url).protocol === 'https:', 'Sources must use HTTPS');
+  for (const id of a.relatedIds) assert(articles.some(b => b.locale === a.locale && b.id === id), `Missing related guide: ${id}/${a.locale}`);
+  for (const match of a.body.matchAll(/\]\((\/(?:[a-z]{2}\/)?blogs\/[^)\s]+)\)/g)) {
+    const target = match[1].replace(/^\//, '').replace(/^blogs\//, 'en/').replace('/blogs/', '/');
+    assert(articles.some(b => `${b.locale}/${b.slug}` === target), `Broken contextual link: ${match[1]}`);
+  }
+}
+// Execute our TypeScript helpers with in-memory fixtures; never modify editorial publication flags.
+function loadModule(filename, fixture, indexing, cache = new Map()) {
+  filename = path.resolve(root, filename);
+  if (cache.has(filename)) return cache.get(filename);
+  const source = fs.readFileSync(filename, 'utf8');
+  const compiled = ts.transpileModule(source, { compilerOptions: { module: ts.ModuleKind.CommonJS, esModuleInterop: true, target: ts.ScriptTarget.ES2022 } }).outputText;
+  const module = { exports: {} }; cache.set(filename, module.exports);
+  const require = spec => {
+    if (spec.endsWith('articles.json')) return fixture;
+    const resolved = spec.startsWith('@/') ? path.join(root, 'src', spec.slice(2)) : path.resolve(path.dirname(filename), spec);
+    return loadModule(`${resolved}.ts`, fixture, indexing, cache);
+  };
+  vm.runInNewContext(compiled, { exports: module.exports, module, require, process: { env: { BLOG_INDEXING_ENABLED: indexing ? 'true' : 'false' } }, URL });
+  return module.exports;
+}
+assert(articles.length > 0, 'No guides to validate');
+const master = articles.find(a => a.locale === 'en');
+const fixture = locales.map(locale => ({ ...master, locale, published: true }));
+fixture.push({ ...master, id: 'unpublished', slug: 'unpublished', locale: 'en', published: false });
+const live = loadModule('src/lib/blog/data.ts', fixture, true);
+assert.equal(live.publishedArticles().length, 6);
+assert.equal(live.visibleArticles().length, 6);
+assert.equal(live.getArticle('en', 'unpublished'), undefined);
+const preview = loadModule('src/lib/blog/data.ts', fixture, false);
+assert.equal(preview.visibleArticles().length, 7);
+const meta = loadModule('src/lib/blog/metadata.ts', fixture, true);
+for (const a of fixture.filter(a => a.published)) {
+  const m = meta.blogMetadata(a.locale, a);
+  assert.equal(m.alternates.canonical, `https://text.skin${a.locale === 'en' ? '' : `/${a.locale}`}/blogs/${a.slug}`);
+  assert.equal(Object.keys(m.alternates.languages).length, 7);
+  assert.equal(m.robots.index, true);
+  assert.equal(m.openGraph.url, m.alternates.canonical);
+}
+const partialMeta = loadModule('src/lib/blog/metadata.ts', fixture.slice(0, 2), true);
+assert.equal(Object.keys(partialMeta.blogMetadata('en', fixture[0]).alternates.languages).length, 3);
+const draftMeta = loadModule('src/lib/blog/metadata.ts', articles.map(a => ({ ...a, published: false })), false);
+assert.equal(draftMeta.blogMetadata('en', master).robots.index, false);
+assert.equal(Object.keys(draftMeta.blogMetadata('en', master).alternates.languages).length, 0);
+const sitemap = loadModule('src/app/sitemap.ts', fixture, true).default();
+assert.equal(sitemap.length, 12);
+assert(sitemap.every(a => /\/blogs(?:\/|$)/.test(a.url) && !a.url.includes('unpublished')));
+assert.equal(loadModule('src/app/sitemap.ts', fixture, false).default().length, 0);
+console.log(`PASS: ${articles.length} articles; content references, publication gates, reciprocal SEO alternates, canonical URLs, and sitemap fixtures.`);
+if (process.argv.includes('--release')) {
+  const expected = inventory.map(a => `${a.locale}/${a.id}`).sort();
+  const actual = articles.filter(a => a.published).map(a => `${a.locale}/${a.id}`).sort();
+  assert.deepEqual(actual, expected, 'Release blocked: published records must match the approved inventory exactly');
+  assert.equal(process.env.BLOG_INDEXING_ENABLED, 'true', 'Release blocked: BLOG_INDEXING_ENABLED must be true at build time');
+  console.log('PASS: editorial release flags and approved inventory. This does not establish deployment, indexing, traffic, or payment outcomes.');
+}

+ 107 - 0
seo_opt/BLUEPRINT.md

@@ -0,0 +1,107 @@
+# STRATA blog: compact SEO_OPT adaptation
+
+Status: approved local implementation of three English destination guides, 2026-10-09; no push or deployment authority. Target: `text.skin`, Gogs `jerry/web-ui`, Next.js 14.1.0. This document is a workflow specification, not evidence that publication, approval, indexing, or growth has happened.
+
+## Scope and durable assets
+
+The framework supports English, German, French, Spanish, Italian and Portuguese; smaller languages remain deferred. Keyword and service-scope research is complete for this first decision. The user approved three English appointment guides for Ireland residents: Netherlands first, Greece and Denmark. No-slots checks and document preparation remain sections within each guide. Other languages and extra topics are conditional future work, not a launch quota. The old Italy drafts are preserved only in `docs/editorial/archive/italy-provisional-2026-10-08.json`, excluded from all routes and metadata. The report supporting this scope distinguishes Ireland Google Ads estimates, a Dublin SERP snapshot, missing data and population background; none proves traffic, conversion, or ranking outcomes.
+
+Use the article collection as the content inventory; `approved-inventory.json` is only the exact release allowlist for the approved IDs/locales/slugs, not a second task backlog. Keep this one blueprint, production content, code/tests, and normal Git/review receipts. Do not add a second backlog, daily report directories, raw response archives, per-article rule files, a scheduler, or an agent framework. No backend, booking automation, account, payment or credential work is included. No push, deployment, external publication, or Google submission is authorized by this plan.
+
+## Provenance: actual previous design, not a generic replacement
+
+Read-only sources checked against `zhangweijp/soulname-v2` at `c4f3f7c` on 2026-10-08:
+
+| Source | Adopt / adapt / do not reuse |
+| --- | --- |
+| [seo_opt/SKILL.md](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/SKILL.md), blob `3bf67384309b58ebda09e590ba2e083221d970bb` | Adopt preflight, scoped permission checks, useful complete drafts, same-version review and separate outcomes. Adapt the entry checklist to this repository. Do not reuse SoulName's naming columns, quotas, dates or scheduling authority. |
+| [seo_opt/policy.json](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/policy.json), blob `04a61c5cc55e0f7e10d36063311bc998d3558d4f` | Adopt explicit boundaries and no automatic publication. Do not copy its domain, project/property IDs, seven-country filters, budget authority, automation ID or runtime settings. |
+| [seo_opt/OPERATIONS.md](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/OPERATIONS.md), blob `df75f85d0bfb0e031b2a4668ac680ecc0b84de4c` | Adopt evidence → diagnosis → bounded action → verification → measured learning, unknown-write reconciliation, minimal records and separate live/submitted/indexed facts. Adapt to a manual, local draft workflow with no runtime ledger. |
+| [seo_opt/CONTENT.md](https://github.com/zhangweijp/soulname-v2/blob/c4f3f7c/seo_opt/CONTENT.md), blob `db6817be494b05d240655c0266e1e391070b41df` | Adopt native-language intent, honest title, reader benefit, complete same-version reading and source attribution. Replace naming research with current consular primary sources and jurisdiction-specific boundaries. |
+
+The local reference checkout was `soulname-404-i18n-3c313c6/seo_opt/`; its dirty working tree was not treated as proof of current main. Both `seo/BLUEPRINT.md` and `seo_opt/BLUEPRINT.md` returned 404 at the checked GitHub ref. The four current documents above are the verified design reference; no historical blueprint content is invented. No SoulName `state.json`, active run, runtime or automation is copied or executed.
+
+Tool roles carry over as a design only: OpenSEO = search intelligence; DispatchSEO = editorial/queue state; Git = versioned implementation and authorized publication. Their connection to `text.skin` has not been established. Existing source reads and repository files suffice for the current draft. A future integration needs a verified target project, permissions and a successful scoped read; “connected” alone does not prove data access. No tool installation or paid research is implied.
+
+## Discovery gate: evidence before a content backlog
+
+The latest data-first direction supersedes the earlier proposal of three Italy topics multiplied into 18 pages. Start with keyword discovery following the user's requested 哥飞 approach, grounded in actual primary-source guidance researched separately; do not attribute an invented checklist to him. Confirm service origin/destination coverage first. Then gather native-language seed queries, related questions and actual SERP examples for the confirmed services. Record source/tool, geography, language, date, visible metrics and limitations. Distinguish measured search demand from plausible reader needs, keyword suggestions and official factual evidence.
+
+Compare demand, intent, competition and fit to the real product before choosing topics. Keep missing volume/difficulty/market coverage explicitly unknown; a connected tool or an official visa page does not prove keyword opportunity. Deduplicate intent, identify what a genuinely useful page adds, and present a small ranked recommendation with evidence and uncertainties for approval. Only after that decision should the existing article inventory become an approved content backlog and full drafts/localizations resume. Do not run new tools, buy data, or expand permissions merely because a workflow mentions them. The root task owns current discovery; this checkpoint creates no research executor or new ledger.
+
+## Preflight and working loop
+
+Before each change: identify the repository/branch and current diff, actual article version, owner of each file, existing same-intent articles and unfinished reviews, current environment/domain, and authorized action. Preserve others' work. Check unknown external outcomes before retrying; do not recreate a task to bypass an unresolved write. State a concrete completion condition. Independent authorized work can continue around a blocker, but translations and additional topics remain outside the approved three-English-guide scope.
+
+| Step | What / why / how | Smallest evidence or output |
+| --- | --- | --- |
+| Observe | Confirm actual service scope, then inspect keyword/SERP evidence and existing inventory before committing topics; official sources verify facts, not search demand. Use scoped analytics only if actually available. | Article ID, locale, question, source URLs, read date and coverage/unknowns. |
+| Validate | Check source authority, jurisdiction, date and whether each claim follows from the source. Recheck expired or changed requirements. | Supported claims and unresolved claims; never convert an unread source, empty result or error into proof. |
+| Diagnose | Identify the specific content/technical gap. Distinguish eligibility, booking scarcity, missing documents, and site defects. | Reproduction or reader gap; no claimed traffic decline without comparable data. |
+| Decide | Prioritize blockers and already-started useful work. Deduplicate same intent; keep a topic within a useful guide unless separate intent warrants another page. | Continue, revise, defer or stop, with a short reason. |
+| Plan | Fix scope, files, exact article version, checks, review responsibility and rollback before editing. | Review description tied to the current diff; no parallel plan file. |
+| Execute | Write complete native-language prose and implement the approved local changes. Keep source-supported steps usable without a product CTA. | Current full article and related implementation diff. |
+| Verify | Read the entire current article, verify claims and title payoff, then run mechanical and rendered-page checks. Review a changed version again. | Editorial judgment with concrete passages plus actual command/exit-code and browser results; mark unrun checks. |
+| Measure | Only after an authorized release: verify actual live version, then separately observe search and business outcomes. | Same-scope evidence or blocked/inconclusive status, never invented zeroes. |
+| Learn | Fix the current defect first; add only a reusable preventative rule/test at its earliest cause. | One concise rationale in the normal review/Git history; replay is not proof of future effectiveness. |
+| Clean | Remove only owned temporary materials; retain production content, necessary citations, pending blockers and normal review receipts. | Compact completion note: delivered, verified, blocked, next decision. |
+
+## Content gate for the approved first cohort
+
+Each intent family shares a stable article ID across locales. The article collection is the sole inventory; `published` is a production renderer inclusion flag, not user approval or a real-world publication receipt. The three current English records have passed independent editorial review and have `published:true` solely for local release-candidate verification. This is not remote publication authority; the default indexing gate remains off. Local review mode deliberately exposes draft routes with noindex; noindex is not access control and the review build must not be publicly deployed. `reviewedAt` is a genuine review date, not a claim that all sources were updated that day. Do not bump it without rechecking the content.
+
+The approved guides must solve three distinct reader tasks:
+
+1. Netherlands: find the official VFS Dublin route, prepare the application, and understand availability checks. Prominently preserve NetherlandsWorldwide’s advice to book personally and avoid intermediaries; do not imply official approval of an automatic-booking service.
+2. Greece: select the correct Embassy-linked category, understand the verified calendar workflow and obtain appointment confirmation. Do not substitute a third-party search result for the Embassy’s linked route.
+3. Denmark: choose the right destination, tourist category and Ireland submission route, keeping application registration separate from appointment booking. Do not transplant business-visa or another country’s procedure.
+
+The official booking CTA is article-specific. Source current facts, explain no availability and preparation within each guide, and do not manufacture separate thin pages. Related-country links need a reader reason; an empty related list is acceptable.
+
+For every locale: formulate the actual reader question in that language, compare two honest title options during review, choose one whose promises the article delivers, and review the full native-language version. Translation presence is not proof of language quality. Unverified query volume remains unverified; do not manufacture keywords or call English-first copy native research. Read the opening, practical steps and conclusion as a first-time reader. A bibliography, word count, headings and a passing build cannot replace this review.
+
+Keep official source URLs beside the claims they support and in `sources`; re-open them before final editorial approval and before any later release. Distinguish current rules from interpretation and product statements. If a consequential source is unavailable or contradictory, narrow the claim or block it; do not silently infer an answer. Product facts supplied by the owner are not evidence that a consulate authorizes that service.
+
+STRATA's described product can book on a user's behalf. Do not rewrite it as notifications-only to sidestep the issue. Each destination’s actual official guidance must be represented accurately, including the Netherlands recommendation to book personally and avoid intermediaries. Do not generalize old Italy-only requirements across countries. Clearly identify STRATA as an independent third party, without embassy affiliation, guaranteed appointments, guaranteed visas, or implied permission/compliance. The user must resolve any product/official-rule conflict before promotional claims about that use are approved. Educational guides can still give complete official self-service guidance. No misleading workaround instructions.
+
+## Implementation map and ordered handoff
+
+| Owner / step | Existing implementation targets | Acceptance |
+| --- | --- | --- |
+| Discovery owner, then content author after approval | `src/content/blog/articles.json`, contract `src/lib/blog/types.ts` | The current allowlist is three English Netherlands/Greece/Denmark guides. Archived Italy examples never enter the active collection. Approved records need shared IDs where genuinely equivalent, unique locale/slug pairs, real sources, accurate review dates and valid related IDs. |
+| Blog implementation: load only intended records and render routes | `src/lib/blog/data.ts`, `src/components/blog/{BlogShell,BlogViews}.tsx`; `src/app/(blog-en)/blogs/`; `src/app/(blog-localized)/[locale]/blogs/`; blog components | `/blogs` and `/{de,fr,es,it,pt}/blogs`, with article detail routes. Unknown locale/slug must not render an article. With indexing enabled, drafts must be excluded from routes, navigation, alternatives and sitemap. With indexing disabled, draft routes are intentionally reviewable. |
+| Blog implementation: localized presentation | `src/lib/blog/translations.ts`, route layouts and components | Correct `html lang`, complete UI copy and article text in each locale; links preserve intended language. No missing translation keys, raw namespace keys or accidental app locale coupling. |
+| Blog implementation: metadata and crawl policy | `src/lib/blog/metadata.ts`, `src/app/sitemap.ts`, `src/app/robots.ts` | One canonical per page, reciprocal actual translations, consistent JSON-LD, safe default indexing gate, accurate sitemap. |
+| Reviewer: same-version review and technical verification | Current complete content + rendered build + normal test receipts | Editorial verdict and technical results separately recorded against the exact diff/commit or hashes. Later edits invalidate affected review. |
+| Release owner: future authorized delivery only | Normal Git/release process | Explicit current-version approval and publication authority, then verified deployment and live rendered URLs. Not part of this draft delivery. |
+
+The code owner owns implementation and test commands; this document does not claim they have passed. Do not start another content copy or parallel implementation. Resolve review corrections in the existing articles/code.
+
+## Mechanical gate recipe
+
+Run from the target checkout, capture actual results in the normal review, and rerun affected checks after corrections:
+
+- Inventory/schema checks: only the six allowed locales; coverage exactly matches the approved inventory; stable unique slugs; nonempty bodies/descriptions; valid dates, HTTPS source URLs, and related IDs; language selector targets exist. Completeness checks are structural, not an editorial verdict.
+- `npm run lint`, `npx tsc --noEmit`, and `npm run build`, and `node scripts/check-blog.mjs` for content and SEO fixtures. A pre-existing failure is reported with scope; never label an unrun or failed stage passed.
+- Default build with `BLOG_INDEXING_ENABLED` absent/false: editorial previews are `noindex`, sitemap empty, and robots permits crawling so crawlers can see `noindex`. Draft routes are intentionally exposed in this local review mode. Noindex is not confidentiality or access control; do not deploy this preview publicly.
+- Use `node scripts/check-blog.mjs` in-memory published fixtures to test release mechanics without changing real draft flags. In an isolated local verification build only, set `BLOG_INDEXING_ENABLED=true` and rebuild to verify real drafts are excluded from routes, navigation, alternatives and sitemap; then restore the default preview build. Run `BLOG_INDEXING_ENABLED=true node scripts/check-blog.mjs --release` only after the content reviewer approves the complete current records. It checks the exact approved inventory, not three pages in every language. Keep real flags false until editorial approval; passing this gate establishes only local release eligibility, never deployment authority. Later, before an authorized release, this check and the release build must pass and the prospective canonical URLs and sitemap must be inspected. Changing an environment variable without rebuilding does not update generated metadata. This test does not authorize production enablement.
+- Inspect rendered HTTP headers and HTML for every locale index and article. Canonical origin is exactly `https://text.skin`; no tunnel, localhost, copied SoulName domain or tracking query. HTML and HTTP `Link` alternatives must not contradict or duplicate one another. Inspect a query-bearing URL too. No pagination is introduced in this foundation; if added later, define its own canonical/translation mapping instead of assuming page-number equivalence.
+- `hreflang` advertises only actual matching article editions, with self and reciprocal links; `x-default` uses the actual English target. For the indexing-enabled test, every target is a canonical sitemap member and returns the matching locale/content. No nonexistent “translation” is generated by pathname substitution.
+- Check title, description, `html lang`, canonical, Open Graph URL, Article/Breadcrumb JSON-LD and visible source/review labels against the same article record. Unknown routes return real not-found behavior. Test direct loads and locale switching; inspect desktop and narrow-screen readability, focus/links, source navigation and repeated navigation without calling a screenshot-only review comprehensive.
+
+Regression lessons from SoulName are prevention targets, not a claim that this site already has those faults: automatic HTTP hreflang can conflict with per-page HTML alternatives; query-bearing archive pages cannot blindly inherit root canonicals or translation assumptions; drafts need explicit exclusion/noindex controls; route rendering can fail when required translation namespaces are omitted. Relevant prior code/reference paths include `src/proxy.ts`, `src/tests/i18n/public-metadata.test.ts`, `src/i18n/messages.ts` and `src/tests/i18n/messages.test.ts` in SoulName. Keep equivalent checks in this project's existing validation instead of transplanting its middleware, namespaces, tests or framework version.
+
+## Release and outcome gates remain separate
+
+Use the normal review/release record for each status and its evidence; do not add a runtime state file merely to represent these concepts:
+
+1. Editorial review: current complete locale text read, source claims and native phrasing checked. An author's self-review is not an independent review.
+2. User approval: explicit approval of the identified current version and requested action. A content review is not deployment authority.
+3. Technical verification: actual tests/build/render results for that version; failures and untested conditions remain visible.
+4. Published/live: after separate authorization, the intended version is confirmed on the real production URL. A local build, repository push or deployment success alone is insufficient.
+5. Submitted: only after authorization, an actual Search Console submission receipt. No submission exists in this phase.
+6. Indexed: actual URL Inspection indexing result and selected canonical agree with the intended page. HTTP 200, a sitemap, Live Test and `site:` search do not prove this. Pending, rejected and unknown stay separate.
+7. Search outcome: comparable final GSC windows with exact page, country, device and search type; calculate CTR from clicks/impressions. Ireland residence is the initial reader context, not automatic proof of a search country or language market. Record the real filter and timezone. No baseline means a new-page observation, not a fabricated zero-history improvement.
+8. Commercial outcome: actual attributable product results, if legitimately available, separate from clicks or rankings. No causal lift or visa/appointment success guarantee follows from SEO checks.
+
+For a future experiment, fix baseline and observation windows, minimum useful sample and guardrails before release. Do not shorten the window after seeing results. Empty, failed, not-yet-final, low-sample and unmeasured are different states. If no analytics integration exists, say measurement is blocked; the current local deliverable can still be reviewed. No automatic scheduling is established by this document.

+ 0 - 0
src/app/admin/accounts/page.tsx → src/app/(app)/admin/accounts/page.tsx


+ 0 - 0
src/app/admin/agent/page.tsx → src/app/(app)/admin/agent/page.tsx


+ 0 - 0
src/app/admin/configurations/page.tsx → src/app/(app)/admin/configurations/page.tsx


+ 0 - 0
src/app/admin/layout.tsx → src/app/(app)/admin/layout.tsx


+ 0 - 0
src/app/admin/node-configurations/page.tsx → src/app/(app)/admin/node-configurations/page.tsx


+ 0 - 0
src/app/admin/orders/new/page.tsx → src/app/(app)/admin/orders/new/page.tsx


+ 0 - 0
src/app/admin/orders/page.tsx → src/app/(app)/admin/orders/page.tsx


+ 0 - 0
src/app/admin/page.tsx → src/app/(app)/admin/page.tsx


+ 0 - 0
src/app/admin/payments/page.tsx → src/app/(app)/admin/payments/page.tsx


+ 0 - 0
src/app/admin/plugins/page.tsx → src/app/(app)/admin/plugins/page.tsx


+ 0 - 0
src/app/admin/products/page.tsx → src/app/(app)/admin/products/page.tsx


+ 0 - 0
src/app/admin/proxies/page.tsx → src/app/(app)/admin/proxies/page.tsx


+ 0 - 0
src/app/admin/settlement/page.tsx → src/app/(app)/admin/settlement/page.tsx


+ 0 - 0
src/app/admin/tasks/page.tsx → src/app/(app)/admin/tasks/page.tsx


+ 0 - 0
src/app/admin/tickets/page.tsx → src/app/(app)/admin/tickets/page.tsx


+ 0 - 0
src/app/admin/users/page.tsx → src/app/(app)/admin/users/page.tsx


+ 0 - 0
src/app/contact/page.tsx → src/app/(app)/contact/page.tsx


+ 0 - 0
src/app/cookie-policy/page.tsx → src/app/(app)/cookie-policy/page.tsx


+ 0 - 0
src/app/create-order/[id]/page.tsx → src/app/(app)/create-order/[id]/page.tsx


+ 0 - 0
src/app/dashboard/page.tsx → src/app/(app)/dashboard/page.tsx


+ 0 - 0
src/app/dashboard/settings/page.tsx → src/app/(app)/dashboard/settings/page.tsx


+ 3 - 2
src/app/layout.tsx → src/app/(app)/layout.tsx

@@ -1,4 +1,5 @@
-import './globals.css';
+import '../globals.css';
+import { visibleArticles } from '@/lib/blog/data';
 import Navbar from '@/components/Navbar';
 import Footer from '@/components/Footer';
 import { Toaster } from 'react-hot-toast'; 
@@ -10,7 +11,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
     <html lang="zh-CN">
       <body className="bg-slate-50 min-h-screen flex flex-col font-sans">
         <LanguageProvider>
-          <Navbar />
+          <Navbar showBlog={visibleArticles('en').length > 0} />
           
           <main className="flex-grow">
             {children}

+ 0 - 0
src/app/login/page.tsx → src/app/(app)/login/page.tsx


+ 0 - 0
src/app/page.tsx → src/app/(app)/page.tsx


+ 0 - 0
src/app/payment/[id]/page.tsx → src/app/(app)/payment/[id]/page.tsx


+ 0 - 0
src/app/payment/confirm/page.tsx → src/app/(app)/payment/confirm/page.tsx


+ 0 - 0
src/app/privacy/page.tsx → src/app/(app)/privacy/page.tsx


+ 0 - 0
src/app/refund-policy/page.tsx → src/app/(app)/refund-policy/page.tsx


+ 0 - 0
src/app/services/page.tsx → src/app/(app)/services/page.tsx


+ 0 - 0
src/app/slots/page.tsx → src/app/(app)/slots/page.tsx


+ 0 - 0
src/app/terms/page.tsx → src/app/(app)/terms/page.tsx


+ 16 - 0
src/app/(blog-en)/blogs/[slug]/page.tsx

@@ -0,0 +1,16 @@
+import { notFound } from 'next/navigation';
+import { BlogArticleView } from '@/components/blog/BlogViews';
+import { getArticle, visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export const dynamicParams = false;
+export function generateStaticParams() { return visibleArticles('en').map(a => ({ slug: a.slug })); }
+export function generateMetadata({ params }: { params: { slug: string } }) {
+  const article = getArticle('en', params.slug);
+  if (!article) notFound();
+  return blogMetadata('en', article);
+}
+export default function Page({ params }: { params: { slug: string } }) {
+  const article = getArticle('en', params.slug);
+  if (!article) notFound();
+  return <BlogArticleView article={article} />;
+}

+ 6 - 0
src/app/(blog-en)/blogs/layout.tsx

@@ -0,0 +1,6 @@
+import '../../globals.css';
+import '@/components/blog/blog.css';
+import { BlogShell } from '@/components/blog/BlogShell';
+export default function BlogLayout({ children }: { children: React.ReactNode }) {
+  return <html lang="en"><body className="blog-body"><BlogShell locale="en">{children}</BlogShell></body></html>;
+}

+ 9 - 0
src/app/(blog-en)/blogs/page.tsx

@@ -0,0 +1,9 @@
+import { notFound } from 'next/navigation';
+import { BlogIndex } from '@/components/blog/BlogViews';
+import { visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export const metadata = blogMetadata('en');
+export default function Page() {
+  if (!visibleArticles('en').length) notFound();
+  return <BlogIndex locale="en" />;
+}

+ 16 - 0
src/app/(blog-localized)/[locale]/blogs/[slug]/page.tsx

@@ -0,0 +1,16 @@
+import { notFound } from 'next/navigation';
+import { BlogArticleView } from '@/components/blog/BlogViews';
+import { getArticle, isLocale, visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export const dynamicParams = false;
+export function generateStaticParams({ params }: { params: { locale: string } }) {
+  return isLocale(params.locale) ? visibleArticles(params.locale).map(a => ({ slug: a.slug })) : [];
+}
+function resolve(params: { locale: string; slug: string }) {
+  if (!isLocale(params.locale) || params.locale === 'en') notFound();
+  const article = getArticle(params.locale, params.slug);
+  if (!article) notFound();
+  return article;
+}
+export function generateMetadata({ params }: { params: { locale: string; slug: string } }) { const article = resolve(params); return blogMetadata(article.locale, article); }
+export default function Page({ params }: { params: { locale: string; slug: string } }) { return <BlogArticleView article={resolve(params)} />; }

+ 12 - 0
src/app/(blog-localized)/[locale]/blogs/page.tsx

@@ -0,0 +1,12 @@
+import { notFound } from 'next/navigation';
+import { BlogIndex } from '@/components/blog/BlogViews';
+import { isLocale, visibleArticles } from '@/lib/blog/data';
+import { blogMetadata } from '@/lib/blog/metadata';
+export function generateMetadata({ params }: { params: { locale: string } }) {
+  if (!isLocale(params.locale) || params.locale === 'en') notFound();
+  return blogMetadata(params.locale);
+}
+export default function Page({ params }: { params: { locale: string } }) {
+  if (!isLocale(params.locale) || params.locale === 'en' || !visibleArticles(params.locale).length) notFound();
+  return <BlogIndex locale={params.locale} />;
+}

+ 11 - 0
src/app/(blog-localized)/[locale]/layout.tsx

@@ -0,0 +1,11 @@
+import '../../globals.css';
+import '@/components/blog/blog.css';
+import { notFound } from 'next/navigation';
+import { BlogShell } from '@/components/blog/BlogShell';
+import { visibleLocales, isLocale } from '@/lib/blog/data';
+export const dynamicParams = false;
+export function generateStaticParams() { return visibleLocales().filter(locale => locale !== 'en').map(locale => ({ locale })); }
+export default function BlogLayout({ children, params }: { children: React.ReactNode; params: { locale: string } }) {
+  if (!isLocale(params.locale) || params.locale === 'en') notFound();
+  return <html lang={params.locale}><body className="blog-body"><BlogShell locale={params.locale}>{children}</BlogShell></body></html>;
+}

+ 7 - 0
src/app/robots.ts

@@ -0,0 +1,7 @@
+import type { MetadataRoute } from 'next';
+import { absoluteUrl } from '@/lib/blog/data';
+export default function robots(): MetadataRoute.Robots {
+  // Private pages remain crawlable so their X-Robots-Tag noindex headers can be read.
+  // robots.txt is not access control; application authentication remains unchanged.
+  return { rules: { userAgent: '*', allow: '/', disallow: '/api/' }, sitemap: absoluteUrl('/sitemap.xml') };
+}

+ 9 - 0
src/app/sitemap.ts

@@ -0,0 +1,9 @@
+import type { MetadataRoute } from 'next';
+import { absoluteUrl, articlePath, availableLocales, blogPath, indexingEnabled, publishedArticles } from '@/lib/blog/data';
+export default function sitemap(): MetadataRoute.Sitemap {
+  if (!indexingEnabled) return [];
+  return [
+    ...availableLocales().map(locale => ({ url: absoluteUrl(blogPath(locale)) })),
+    ...publishedArticles().map(article => ({ url: absoluteUrl(articlePath(article)), lastModified: article.reviewedAt })),
+  ];
+}

+ 10 - 2
src/components/Navbar.tsx

@@ -4,7 +4,8 @@ import Link from 'next/link';
 import { useRouter, usePathname } from 'next/navigation';
 import { useEffect, useState } from 'react';
 import { 
-  Plane, 
+  Plane,
+  BookOpen,
   ShieldCheck, 
   CalendarSearch, 
   Briefcase, 
@@ -18,7 +19,7 @@ import { isAdmin, logout } from '@/lib/auth';
 import LanguageSwitcher from '@/components/common/LanguageSwitcher';
 import { useLanguage } from '@/lib/i18n/LanguageContext';
 
-export default function Navbar() {
+export default function Navbar({ showBlog = false }: { showBlog?: boolean }) {
   const router = useRouter();
   const pathname = usePathname();
   const { t } = useLanguage();
@@ -82,6 +83,10 @@ export default function Navbar() {
 
           {/* Desktop Nav 菜单 */}
           <div className="hidden md:flex items-center space-x-2">
+            {showBlog && <a href="/blogs" className="px-3 py-1.5 border-2 border-transparent text-xs font-bold uppercase hover:border-black flex items-center gap-1.5">
+              <BookOpen size={14} />
+              <span>{t('nav.blogs')}</span>
+            </a>}
             <Link 
               href="/services" 
               className={`px-3 py-1.5 border-2 text-xs font-bold uppercase transition flex items-center gap-1.5 ${
@@ -177,6 +182,9 @@ export default function Navbar() {
 
           <div className="md:hidden bg-white border-b-2 border-black absolute w-full left-0 z-50 shadow-[0_8px_0px_#000] p-4 space-y-3 font-mono">
             <div className="space-y-1.5 border-b-2 border-dashed border-neutral-300 pb-3">
+              {showBlog && <a href="/blogs" onClick={handleLinkClick} className="flex items-center gap-2 border-2 border-black px-3 py-2 text-sm font-bold">
+                <BookOpen size={14} /> {t('nav.blogs')}
+              </a>}
               <MobileLink href="/services" icon={Briefcase} onClick={handleLinkClick} active={isServicesActive}>
                 {t('nav.services') || '服务工单库'}
               </MobileLink>

+ 18 - 0
src/components/blog/BlogShell.tsx

@@ -0,0 +1,18 @@
+import type { ReactNode } from 'react';
+import type { BlogLocale } from '@/lib/blog/types';
+import { blogPath, indexingEnabled } from '@/lib/blog/data';
+import { copy } from '@/lib/blog/translations';
+
+export function BlogShell({ locale, children }: { locale: BlogLocale; children: ReactNode }) {
+  const t = copy[locale];
+  return <>
+    <a className="blog-skip" href="#blog-main">{t.guides}</a>
+    <header className="blog-header">
+      <a className="blog-brand" href="/" aria-label="STRATA"><strong>STRATA</strong><small>[ VAS DIRECTORY ]</small></a>
+      <nav aria-label={t.guides}><a href={blogPath(locale)}>{t.guides}</a><a href="/services">{t.services}</a></nav>
+    </header>
+    {!indexingEnabled && <p className="blog-preview" role="status">{t.preview}</p>}
+    <main id="blog-main" className="blog-main">{children}</main>
+    <footer className="blog-footer"><div><strong>STRATA · {t.independent}</strong><p>{t.disclaimer}</p><a href="/">{t.home}</a> · <a href="/services">{t.services}</a></div></footer>
+  </>;
+}

+ 41 - 0
src/components/blog/BlogViews.tsx

@@ -0,0 +1,41 @@
+import ReactMarkdown from 'react-markdown';
+import remarkGfm from 'remark-gfm';
+import type { BlogArticle, BlogLocale } from '@/lib/blog/types';
+import { articlePath, visibleLocales, blogPath, visibleArticles, visibleTranslations } from '@/lib/blog/data';
+import { articleSchema } from '@/lib/blog/metadata';
+import { copy } from '@/lib/blog/translations';
+
+function LanguageLinks({ locale, article }: { locale: BlogLocale; article?: BlogArticle }) {
+  const links = article ? visibleTranslations(article).map(a => ({ locale: a.locale, href: articlePath(a) })) : visibleLocales().map(l => ({ locale: l, href: blogPath(l) }));
+  return <nav className="blog-languages" aria-label={copy[locale].language}>{links.map(link => <a key={link.locale} href={link.href} hrefLang={link.locale} lang={link.locale} aria-current={locale === link.locale ? 'page' : undefined}>{copy[link.locale].name}</a>)}</nav>;
+}
+
+export function BlogIndex({ locale }: { locale: BlogLocale }) {
+  const t = copy[locale];
+  return <>
+    <LanguageLinks locale={locale} />
+    <section className="blog-hero"><p className="blog-eyebrow">IRELAND → EUROPE</p><h1>{t.title}</h1><p>{t.description}</p></section>
+    <div className="blog-grid">{visibleArticles(locale).map((article, index) => <article key={article.id} className="blog-card">
+      <span className="blog-card-number">0{index + 1}</span><h2><a href={articlePath(article)}>{article.title}</a></h2><p>{article.description}</p><a className="blog-read" href={articlePath(article)}>{t.read} <span aria-hidden="true">↗</span></a>
+    </article>)}</div>
+    <aside className="blog-notice"><strong>{t.independent}</strong><p>{t.disclaimer}</p></aside>
+  </>;
+}
+
+export function BlogArticleView({ article }: { article: BlogArticle }) {
+  const t = copy[article.locale];
+  const related = visibleArticles(article.locale).filter(a => article.relatedIds.includes(a.id));
+  // Only our typed, repository-owned data is serialized. Escape '<' to prevent script termination.
+  const schema = JSON.stringify(articleSchema(article)).replace(/</g, '\\u003c');
+  return <>
+    <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: schema }} />
+    <LanguageLinks locale={article.locale} article={article} />
+    <nav className="blog-breadcrumb" aria-label={t.guides}><a href={blogPath(article.locale)}>{t.guides}</a><span aria-hidden="true"> / </span><span>{article.title}</span></nav>
+    <article className="blog-article"><header className="blog-article-header"><p className="blog-eyebrow">IRELAND → {article.destinationLabel}</p><h1>{article.title}</h1><p className="blog-lede">{article.description}</p><p className="blog-reviewed">{t.reviewed}: <time dateTime={article.reviewedAt}>{new Intl.DateTimeFormat(article.locale, { dateStyle: 'long', timeZone: 'UTC' }).format(new Date(`${article.reviewedAt}T00:00:00Z`))}</time></p></header>
+      <div className="blog-prose"><ReactMarkdown remarkPlugins={[remarkGfm]} skipHtml>{article.body}</ReactMarkdown></div>
+      <section className="blog-sources"><h2>{t.sources}</h2><ul>{article.sources.map(source => <li key={source.url}><a href={source.url} rel="noopener noreferrer">{source.title}</a></li>)}</ul></section>
+    </article>
+    <aside className="blog-notice"><strong>{t.independent}</strong><p>{t.disclaimer}</p><a className="blog-button" href={article.officialBooking.url}>{article.officialBooking.label} ↗</a><p>{t.serviceNote} <a href="/terms">{t.terms}</a> · <a href="/refund-policy">{t.refunds}</a></p><a href="/services">{t.services} →</a></aside>
+    {related.length > 0 && <section className="blog-related"><h2>{t.related}</h2><ul>{related.map(a => <li key={a.id}><a href={articlePath(a)}>{a.title} →</a></li>)}</ul></section>}
+  </>;
+}

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
src/components/blog/blog.css


+ 17 - 0
src/content/blog/approved-inventory.json

@@ -0,0 +1,17 @@
+[
+  {
+    "id": "netherlands-appointment-booking",
+    "locale": "en",
+    "slug": "netherlands-visa-appointments-dublin"
+  },
+  {
+    "id": "greece-appointment-booking",
+    "locale": "en",
+    "slug": "greece-visa-appointments-dublin"
+  },
+  {
+    "id": "denmark-appointment-booking",
+    "locale": "en",
+    "slug": "denmark-visa-appointments-dublin"
+  }
+]

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 13 - 0
src/content/blog/articles.json


+ 19 - 0
src/lib/blog/data.ts

@@ -0,0 +1,19 @@
+import articlesData from '@/content/blog/articles.json';
+import { locales, type BlogArticle, type BlogLocale } from './types';
+
+export { locales };
+export const SITE_URL = 'https://text.skin';
+export const indexingEnabled = process.env.BLOG_INDEXING_ENABLED === 'true';
+const articles = articlesData as BlogArticle[];
+export const isLocale = (value: string): value is BlogLocale => locales.includes(value as BlogLocale);
+export const blogPath = (locale: BlogLocale) => locale === 'en' ? '/blogs' : `/${locale}/blogs`;
+export const articlePath = (article: BlogArticle) => `${blogPath(article.locale)}/${article.slug}`;
+export const publishedArticles = (locale?: BlogLocale) => articles.filter(a => a.published && (!locale || a.locale === locale));
+// Drafts are available for review only when the explicit indexing gate is off.
+export const visibleArticles = (locale?: BlogLocale) => articles.filter(a => (!indexingEnabled || a.published) && (!locale || a.locale === locale));
+export const visibleLocales = () => locales.filter(locale => visibleArticles(locale).length > 0);
+export const visibleTranslations = (article: BlogArticle) => visibleArticles().filter(a => a.id === article.id);
+export const getArticle = (locale: BlogLocale, slug: string) => visibleArticles(locale).find(a => a.slug === slug);
+export const translations = (article: BlogArticle) => publishedArticles().filter(a => a.id === article.id);
+export const availableLocales = () => locales.filter(locale => publishedArticles(locale).length > 0);
+export const absoluteUrl = (path: string) => `${SITE_URL}${path}`;

+ 39 - 0
src/lib/blog/metadata.ts

@@ -0,0 +1,39 @@
+import type { Metadata } from 'next';
+import type { BlogArticle, BlogLocale } from './types';
+import { absoluteUrl, articlePath, availableLocales, blogPath, indexingEnabled, translations } from './data';
+import { copy } from './translations';
+
+export function blogMetadata(locale: BlogLocale, article?: BlogArticle): Metadata {
+  const title = article?.title ?? copy[locale].title;
+  const description = article?.description ?? copy[locale].description;
+  const path = article ? articlePath(article) : blogPath(locale);
+  const variants = article
+    ? translations(article).map(a => [a.locale, absoluteUrl(articlePath(a))])
+    : availableLocales().map(l => [l, absoluteUrl(blogPath(l))]);
+  const languages = Object.fromEntries(variants);
+  if (languages.en) languages['x-default'] = languages.en;
+  return {
+    metadataBase: new URL(absoluteUrl('/')), title: `${title} | STRATA`, description,
+    robots: { index: indexingEnabled && (!article || article.published), follow: true },
+    alternates: { canonical: absoluteUrl(path), languages },
+    openGraph: { title, description, url: absoluteUrl(path), siteName: 'STRATA', type: article ? 'article' : 'website', locale,
+      alternateLocale: variants.map(([l]) => l).filter(l => l !== locale),
+      ...(article ? { modifiedTime: article.reviewedAt } : {}) },
+    twitter: { card: 'summary', title, description },
+  };
+}
+
+export function articleSchema(article: BlogArticle) {
+  const url = absoluteUrl(articlePath(article));
+  return [
+    { '@context': 'https://schema.org', '@type': 'Article', '@id': `${url}#article`, headline: article.title,
+      description: article.description, inLanguage: article.locale, mainEntityOfPage: url,
+      dateModified: article.reviewedAt, author: { '@type': 'Organization', name: 'STRATA', url: absoluteUrl('/') },
+      publisher: { '@type': 'Organization', name: 'STRATA', url: absoluteUrl('/') },
+      citation: article.sources.map(s => s.url) },
+    { '@context': 'https://schema.org', '@type': 'BreadcrumbList', itemListElement: [
+      { '@type': 'ListItem', position: 1, name: copy[article.locale].guides, item: absoluteUrl(blogPath(article.locale)) },
+      { '@type': 'ListItem', position: 2, name: article.title, item: url },
+    ] },
+  ];
+}

+ 10 - 0
src/lib/blog/translations.ts

@@ -0,0 +1,10 @@
+import type { BlogLocale } from './types';
+type Copy = { name: string; title: string; description: string; guides: string; home: string; services: string; terms: string; refunds: string; reviewed: string; sources: string; related: string; independent: string; disclaimer: string; serviceNote: string; read: string; language: string; preview: string };
+export const copy: Record<BlogLocale, Copy> = {
+  en: { terms:'Service terms', refunds:'Refund policy', name:'English', title:'Visa appointment guides for residents of Ireland', description:'How to book Netherlands, Greece and Denmark tourist visa appointments from Ireland, with official routes, availability checks and preparation steps.', guides:'Visa guides', home:'Home', services:'Explore services', reviewed:'Last checked', sources:'Official sources', related:'Related guides', independent:'Independent guidance', disclaimer:'STRATA is an independent third-party service, not an embassy, consulate or government agency. We cannot guarantee an appointment or visa.', serviceNote:'Our optional automatic-booking service is separate from the official application process. Check the destination, visa category, service terms and refund policy before paying.', read:'Read guide', language:'Choose language', preview:'Review preview: search indexing is disabled.' },
+  de: { terms:'Leistungsbedingungen', refunds:'Erstattungsbedingungen', name:'Deutsch', title:'Visumtermine: Leitfäden für Personen mit Wohnsitz in Irland', description:'Praktische Leitfäden zu Visumterminen, offiziellen Buchungswegen und Reisevorbereitungen für Personen mit Wohnsitz in Irland.', guides:'Visum-Leitfäden', home:'Startseite', services:'Dienstleistungen ansehen', reviewed:'Zuletzt geprüft', sources:'Offizielle Quellen', related:'Weitere Leitfäden', independent:'Unabhängige Orientierung', disclaimer:'STRATA ist ein unabhängiger Drittanbieter und keine Botschaft, kein Konsulat und keine Regierungsbehörde. Wir garantieren weder einen Termin noch ein Visum.', serviceNote:'Unsere Dienstleistungen sind vom offiziellen Terminverfahren getrennt. Lesen Sie vor einer Zahlung die Leistungsbeschreibung und Bedingungen.', read:'Leitfaden lesen', language:'Sprache wählen', preview:'Vorschau zur Prüfung: Suchmaschinenindexierung ist deaktiviert.' },
+  fr: { terms:'Conditions du service', refunds:'Politique de remboursement', name:'Français', title:'Guides des rendez-vous de visa pour les résidents en Irlande', description:'Des guides pratiques sur les rendez-vous de visa, les démarches officielles et les préparatifs pour les résidents en Irlande.', guides:'Guides de visa', home:'Accueil', services:'Voir les services', reviewed:'Dernière vérification', sources:'Sources officielles', related:'Guides associés', independent:'Informations indépendantes', disclaimer:'STRATA est un prestataire tiers indépendant, et non une ambassade, un consulat ou un organisme public. Nous ne garantissons ni rendez-vous ni visa.', serviceNote:'Nos services sont distincts de la procédure officielle de prise de rendez-vous. Consultez leur description et leurs conditions avant tout paiement.', read:'Lire le guide', language:'Choisir la langue', preview:'Aperçu pour relecture : indexation désactivée.' },
+  es: { terms:'Condiciones del servicio', refunds:'Política de reembolso', name:'Español', title:'Guías de citas para visados para residentes en Irlanda', description:'Guías prácticas sobre citas para visados, vías oficiales de reserva y preparación del viaje para residentes en Irlanda.', guides:'Guías de visados', home:'Inicio', services:'Ver servicios', reviewed:'Última revisión', sources:'Fuentes oficiales', related:'Guías relacionadas', independent:'Orientación independiente', disclaimer:'STRATA es un proveedor independiente, no una embajada, un consulado ni una agencia gubernamental. No garantizamos una cita ni un visado.', serviceNote:'Nuestros servicios son independientes del proceso oficial de citas. Lee los detalles y las condiciones antes de pagar.', read:'Leer guía', language:'Elegir idioma', preview:'Vista previa para revisión: indexación desactivada.' },
+  it: { terms:'Condizioni del servizio', refunds:'Politica di rimborso', name:'Italiano', title:'Guide agli appuntamenti per i visti per chi risiede in Irlanda', description:'Guide pratiche agli appuntamenti per i visti, alle procedure ufficiali e ai preparativi per chi risiede in Irlanda.', guides:'Guide ai visti', home:'Home', services:'Esplora i servizi', reviewed:'Ultima verifica', sources:'Fonti ufficiali', related:'Guide correlate', independent:'Guida indipendente', disclaimer:'STRATA è un fornitore terzo indipendente, non un’ambasciata, un consolato o un ente pubblico. Non garantiamo un appuntamento né un visto.', serviceNote:'I nostri servizi sono separati dalla procedura ufficiale di prenotazione. Leggi i dettagli e le condizioni prima di pagare.', read:'Leggi la guida', language:'Scegli la lingua', preview:'Anteprima per revisione: indicizzazione disattivata.' },
+  pt: { terms:'Condições do serviço', refunds:'Política de reembolso', name:'Português', title:'Guias de marcações de vistos para residentes na Irlanda', description:'Guias práticos sobre marcações de vistos, procedimentos oficiais e preparação da viagem para residentes na Irlanda.', guides:'Guias de vistos', home:'Início', services:'Ver serviços', reviewed:'Última verificação', sources:'Fontes oficiais', related:'Guias relacionados', independent:'Orientação independente', disclaimer:'A STRATA é um prestador independente, não uma embaixada, consulado ou entidade governamental. Não garantimos uma marcação nem um visto.', serviceNote:'Os nossos serviços são separados do processo oficial de marcação. Leia os detalhes e as condições antes de pagar.', read:'Ler guia', language:'Escolher idioma', preview:'Pré-visualização para revisão: indexação desativada.' },
+};

+ 16 - 0
src/lib/blog/types.ts

@@ -0,0 +1,16 @@
+export const locales = ['en', 'de', 'fr', 'es', 'it', 'pt'] as const;
+export type BlogLocale = (typeof locales)[number];
+export type BlogArticle = {
+  id: string;
+  slug: string;
+  locale: BlogLocale;
+  destinationLabel: string;
+  officialBooking: { label: string; url: string };
+  title: string;
+  description: string;
+  reviewedAt: string;
+  body: string;
+  sources: { title: string; url: string }[];
+  relatedIds: string[];
+  published: boolean;
+};

+ 1 - 0
src/lib/i18n/locales/en.ts

@@ -296,6 +296,7 @@ export const en = {
     detail_desc: 'Detailed Description',
   },
   nav: {
+    blogs: 'Visa guides',
     dashboard: 'Dashboard',
     products: 'Products',
     tickets: 'Tickets',

+ 1 - 0
src/lib/i18n/locales/zh.ts

@@ -296,6 +296,7 @@ export const zh = {
     detail_desc: '详细说明与情况描述',
   },
   nav: {
+    blogs: '签证指南',
     dashboard: '控制台', // 或 '仪表盘'
     products: '商品列表',
     tickets: '工单中心',

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott