mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
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:
1 parent
a5a7eb6b31
commit
0c4aea32b5
5 files changed
+117
-3
No files matched your search
@@ -0,0 +1,4 @@
|
||||
/** Canonical origin. Every absolute URL the site publishes derives from this one value. */
|
||||
export const siteUrl = 'https://cv.vugado.com'
|
||||
|
||||
export const siteName = 'Nguyễn Đông — Senior Software Engineer'
|
||||
Reference in new issue
Block a user