feat(seo): real metadata, JSON-LD, robots.txt and a build-time sitemap

index.html advertised nothing: no title, no description, no Open Graph, no canonical. The head now carries both theme-color values, an OG block with an absolute 1200x1600 image, a Twitter card and a Person JSON-LD block with sameAs and a PostalAddress. src/data/site.ts holds the canonical origin; generate-sitemap.ts writes dist/sitemap.xml from navPaths plus the project list (10 urls) and fails the build if dist/index.html no longer contains siteUrl, because an HTML head cannot import TypeScript and the origin is therefore written twice by hand. Chained into pnpm build so dist/ is complete before the deploy workflow uploads it.
This commit is contained in:
dong.nguyen committed 2026-10-18 23:45:39 +07:00
1 parent a5a7eb6b31
commit 0c4aea32b5
5 files changed
+117 -3

No files matched your search

+63 -2
View File
@@ -2,9 +2,70 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>portfolio</title>
<title>Nguyễn Đông — Senior Software Engineer</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="https://cv.vugado.com/" />
<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="Nguyễn Đông — Senior Software Engineer" />
<meta property="og:title" content="Nguyễn Đông — Senior Software Engineer" />
<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="https://cv.vugado.com/" />
<meta property="og:locale" content="en_US" />
<meta property="og:locale:alternate" content="vi_VN" />
<meta property="og:image" content="https://cv.vugado.com/profile-photo.webp" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="1600" />
<meta property="og:image:alt" content="Portrait of Nguyễn Đông" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Nguyễn Đông — Senior Software Engineer" />
<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="https://cv.vugado.com/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": "https://cv.vugado.com/",
"email": "mailto:nguyendong_bkdn@yahoo.com",
"image": "https://cv.vugado.com/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 {