feat: implement SEO enhancements and sitemap generation

- Added comprehensive SEO meta tags in index.html for improved search engine visibility, including Open Graph and Twitter Card tags.
- Created a sitemap.xml for better indexing of site tools, generated automatically via a new script (generate-sitemap.ts).
- Introduced robots.txt to manage crawler access and specified sitemap location.
- Updated package.json to include a build step for sitemap generation and added tsx as a dependency.
- Documented SEO optimizations and usage instructions in a new SEO-README.md file.
This commit is contained in:
typist
2025-10-29 08:05:37 +08:00
parent b5a811e5ee
commit 109139a42e
8 changed files with 718 additions and 12 deletions

View File

@@ -5,7 +5,8 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "npm run generate:sitemap && tsc -b && vite build",
"generate:sitemap": "tsx scripts/generate-sitemap.ts",
"lint": "eslint .",
"preview": "vite preview",
"release:patch": "npm version patch && git push --follow-tags",
@@ -43,6 +44,7 @@
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.22",
"globals": "^16.4.0",
"tsx": "^4.19.2",
"tw-animate-css": "^1.4.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.45.0",
@@ -53,7 +55,8 @@
"vite": "npm:rolldown-vite@7.1.14"
},
"onlyBuiltDependencies": [
"@swc/core"
"@swc/core",
"esbuild"
]
}
}