feat: integrate SEO hook for dynamic metadata management

- Removed hardcoded canonical link from index.html.
- Implemented useSEO hook in layout.tsx to dynamically update SEO metadata including title, description, and canonical URL based on the current route.
- Added new use-seo.ts file containing the SEO hook logic for improved search engine optimization.
This commit is contained in:
typist
2025-10-29 08:15:53 +08:00
parent 04fbf12e07
commit 297000f208
3 changed files with 118 additions and 17 deletions

View File

@@ -13,7 +13,6 @@
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="/lite.svg" />
<link rel="canonical" href="https://litek.typist.cc/" />
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website" />