mirror of
https://github.com/walkxcode/dashboard-icons.git
synced 2025-06-28 23:40:21 +08:00
refactor(web): remove structured data schema from homepage
This commit is contained in:
parent
30c130e4e7
commit
58dae5609b
@ -48,29 +48,8 @@ export default async function Home() {
|
|||||||
const recentIcons = await getRecentlyAddedIcons(10)
|
const recentIcons = await getRecentlyAddedIcons(10)
|
||||||
const stars = await getGitHubStars()
|
const stars = await getGitHubStars()
|
||||||
|
|
||||||
// Collection schema for the homepage
|
|
||||||
const collectionSchema = {
|
|
||||||
"@context": "https://schema.org",
|
|
||||||
"@type": "CollectionPage",
|
|
||||||
"name": `${SITE_NAME} Collection - ${SITE_TAGLINE}`,
|
|
||||||
"description": getHomeDescription(totalIcons),
|
|
||||||
"url": WEB_URL,
|
|
||||||
"numberOfItems": totalIcons,
|
|
||||||
"mainEntity": {
|
|
||||||
"@type": "CreativeWork",
|
|
||||||
"name": SITE_NAME,
|
|
||||||
"description": getHomeDescription(totalIcons),
|
|
||||||
"creator": {
|
|
||||||
"@type": "Organization",
|
|
||||||
"name": ORGANIZATION_NAME,
|
|
||||||
"url": GITHUB_URL
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<StructuredData data={collectionSchema} id="collection-schema" />
|
|
||||||
<div className="flex flex-col min-h-screen">
|
<div className="flex flex-col min-h-screen">
|
||||||
<HeroSection totalIcons={totalIcons} stars={stars} />
|
<HeroSection totalIcons={totalIcons} stars={stars} />
|
||||||
<RecentlyAddedIcons icons={recentIcons} />
|
<RecentlyAddedIcons icons={recentIcons} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user