Add SEO foundation: robots, sitemap, JSON-LD, OG/Twitter cards, per-page metadata
- src/lib/site.ts: single source for site name/url/description (rename via env only) - src/app/robots.ts: allow all, disallow /api /files, explicit Googlebot/Bingbot/DuckDuckBot/Bravebot/Applebot - src/app/sitemap.ts: static pages + routes/check/stops from backend, falls back to static when API is down - src/components/JsonLd.tsx: WebSite + Organization + SearchAction, BreadcrumbList, BusStop, Service - layout.tsx: metadataBase, canonical, keywords, robots, openGraph, twitter - generateMetadata for /stops/[code], /routes/[routeId], /check/[routeId] - canonical + description on /stops /routes /blog /about /credits - public/og-image.png 1200x630
This commit is contained in:
1 parent
7ac7bf5878
commit
2fa73f43d9
27 files changed
+850
-68
No files matched your search
@@ -89,7 +89,7 @@
|
||||
"home.lead": "Browse routes, find stops, and preview a route right from this page",
|
||||
"home.chooseProvince": "Select Province",
|
||||
"home.chooseStation": "Select Terminal",
|
||||
"share.label": "Share short link",
|
||||
"share.label": "Share this page",
|
||||
"share.copied": "Link copied",
|
||||
"share.short": "Short link",
|
||||
"share.line": "Share on LINE",
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
"home.lead": "ดูสายรถ, ค้นหาป้าย และเปิดตัวอย่างเส้นทางได้ทันทีจากหน้าแรก",
|
||||
"home.chooseProvince": "เลือกจังหวัด",
|
||||
"home.chooseStation": "เลือกสถานีขนส่งผู้โดยสาร",
|
||||
"share.label": "แชร์ลิงก์สั้น",
|
||||
"share.label": "แชร์หน้านี้",
|
||||
"share.copied": "คัดลอกลิงก์แล้ว",
|
||||
"share.short": "ลิงก์สั้น",
|
||||
"share.line": "แชร์ผ่าน LINE",
|
||||
|
||||
Reference in new issue
Block a user