feat: enhance SEO with meta tags and sitemap, add DocumentMeta component

This commit is contained in:
TerryM
2026-05-28 22:28:23 +08:00
parent f1a0e9ab40
commit f183a401fc
6 changed files with 300 additions and 3 deletions

4
public/robots.txt Normal file
View File

@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://ark-library.com/sitemap.xml

17
public/site.webmanifest Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "ARK 资料库",
"short_name": "ARK Library",
"description": "ARK 官方数据库集中整理官方教材、公告、视频、图片与常用文件,帮助社区快速找到可信资料。",
"start_url": "/",
"display": "standalone",
"background_color": "#08070c",
"theme_color": "#08070c",
"icons": [
{
"src": "/assets/ark-mark.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any maskable"
}
]
}

18
public/sitemap.xml Normal file
View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://ark-library.com/</loc>
</url>
<url>
<loc>https://ark-library.com/browse</loc>
</url>
<url>
<loc>https://ark-library.com/categories</loc>
</url>
<url>
<loc>https://ark-library.com/official-recommendations</loc>
</url>
<url>
<loc>https://ark-library.com/about</loc>
</url>
</urlset>