Files
cv/index.html
T
dong.nguyen 0dd2c6b3ee seo: per-route HTML + genuine 404, security headers, heading hierarchy (spec-v8)
Stage 1 (audit 4.1/4.2/4.4): scripts/generate-route-pages.ts (pnpm generate:routes, chained into build before the sitemap) rewrites the built head per route — title/description/canonical/og/twitter from the new ui/meta group (the six static manifests claim it) or from the project records — adds manifest-claimed <noscript> bodies and writes dist/404.html; nginx.conf resolves each URL against its generated file (try_files $uri/index.html $uri =404 + server-level error_page) so known routes answer 200 at the exact URL and unknown URLs a real 404; App.tsx adds the lazy catch-all route + src/pages/NotFoundPage.tsx for dead links inside the SPA (ui/common notFound keys, EN+VI); generate-sitemap.ts derives lastmod from the git history of the documents backing each URL and fails the build when a sitemap URL has no generated route file.

Stage 2 (audit 4.3/4.6): nginx.conf only — CSP (Report-Only, script-src carries the theme-init inline script hash, verified against the built bytes by the route generator), HSTS, nosniff, Referrer-Policy, Permissions-Policy, X-Frame-Options at server level and repeated in the two blocks that declare their own add_header; gzip_types for CSS/JS/JSON/SVG/XML with the hashed-asset immutable caching preserved.

Stage 3 (audit 4.7): SectionHeading gains level='h1'|'h2' and the six standalone pages render their top heading as h1; project detail blocks move h3->h2 and section titles h4->h3; diagram/code sections render in <pre class=project-diagram>, the Markdown fences are stripped from the two VI ASCII diagrams, the internal section-type chip renders only in edit mode; og:image declares the real 500x667.

docs: the 2026-10-29 site audit and spec-v8-seo-hardening (stages 1-3 repo-side DONE; owner browser walkthrough, CSP enforcement decision D5 and stage 4 D4 open).
2026-11-02 13:02:53 +07:00

94 lines
3.8 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<!-- The site identity values in this head are filled at build time by the
site-identity vite plugin; they come from the CI variables SITE_URL /
SITE_NAME or the local .env, never from this file. -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>%SITE_NAME%</title>
<meta
name="description"
content="Portfolio of Nguyễn Đông, a Senior Software Engineer in Ho Chi Minh City working on distributed systems, logistics automation, computer vision and practical AI in Java, Go and TypeScript."
/>
<meta name="author" content="Nguyễn Đông" />
<meta name="robots" content="index, follow" />
<link rel="canonical" href="%SITE_URL%/" />
<meta name="theme-color" content="#151914" media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content="#f6f5f2" media="(prefers-color-scheme: light)" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="%SITE_NAME%" />
<meta property="og:title" content="%SITE_NAME%" />
<meta
property="og:description"
content="Distributed systems, logistics automation, computer vision and practical AI — SAP Lab Vietnam, Lazada, and a logistics digital-twin platform."
/>
<meta property="og:url" content="%SITE_URL%/" />
<meta property="og:locale" content="en_US" />
<meta property="og:locale:alternate" content="vi_VN" />
<meta property="og:image" content="%SITE_URL%/profile-photo.webp" />
<meta property="og:image:width" content="500" />
<meta property="og:image:height" content="667" />
<meta property="og:image:alt" content="Portrait of Nguyễn Đông" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="%SITE_NAME%" />
<meta
name="twitter:description"
content="Distributed systems, logistics automation, computer vision and practical AI — SAP Lab Vietnam, Lazada, and a logistics digital-twin platform."
/>
<meta name="twitter:image" content="%SITE_URL%/profile-photo.webp" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Nguyễn Đông",
"alternateName": "Dong Nguyen",
"jobTitle": "Senior Software Engineer",
"url": "%SITE_URL%/",
"email": "mailto:nguyendong_bkdn@yahoo.com",
"image": "%SITE_URL%/profile-photo.webp",
"sameAs": [
"https://github.com/dong-nz",
"https://www.linkedin.com/in/dong-nz"
],
"knowsAbout": [
"Distributed systems",
"System architecture",
"Computer vision",
"AI / ML applications"
],
"address": {
"@type": "PostalAddress",
"addressLocality": "Ho Chi Minh City",
"addressCountry": "VN"
}
}
</script>
<script>
(function () {
try {
var stored = localStorage.getItem('portfolio-theme')
var theme = stored === 'dark' || stored === 'light'
? stored
: (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
var storedPalette = localStorage.getItem('portfolio-palette')
document.documentElement.setAttribute('data-theme', theme)
document.documentElement.setAttribute('data-palette', storedPalette === 'blue' ? 'blue' : 'red')
} catch (e) {
document.documentElement.setAttribute('data-theme', 'dark')
document.documentElement.setAttribute('data-palette', 'red')
}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>