You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seo: fix crawlability, restructure site, and improve internal linking (#166)
Root cause: skill cards used div+onClick instead of <a href>, leaving
Google no crawl path to any skill subpage despite 19 pages existing.
Changes:
- BrowseTab: replace div+onClick cards with stretched cover-link pattern
(absolute <a> beneath content div) so download/GitHub buttons remain
valid anchors without nesting; add hash-based category URL sync via
history.replaceState so /skills/#DeFi links land pre-filtered
- Homepage (index.astro): restructure as static marketing page with
category cards grid linking to /skills/#<category>; ItemList JSON-LD
added via extraJsonLd so default WebSite graph is preserved
- skills/index.astro: new hub page that mounts BrowseTab island;
gives Google a canonical /skills/ entry point with crawlable card links
- skills/[slug]/index.astro: add BreadcrumbList JSON-LD, visible
breadcrumb nav, related-skills grid, and prev/next skill navigation;
pass prevUrl/nextUrl for <link rel="prev/next"> in <head>
- BaseLayout: add extraJsonLd slot (second JSON-LD block), prevUrl/nextUrl
props rendered as <link rel="prev/next">
- SiteLayout: make activeTab optional; simplify nav to 3 tabs (browse,
how it works, get started); thread extraJsonLd/prevUrl/nextUrl through
- astro.config.mjs: add lastmod: new Date() to sitemap integration
Copy file name to clipboardExpand all lines: src/layouts/BaseLayout.astro
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,9 @@ interface Props {
6
6
ogTitle?:string;
7
7
ogDescription?:string;
8
8
jsonLd?:string;
9
+
extraJsonLd?:string;
10
+
prevUrl?:string;
11
+
nextUrl?:string;
9
12
}
10
13
11
14
import { SITE_URL } from"../data/site";
@@ -17,6 +20,9 @@ const {
17
20
ogTitle ="Internet Computer (ICP) Skills — Skills for agents, not docs for humans",
18
21
ogDescription ="Agent-readable skill files for every Internet Computer capability. Zero hallucinations. Paste the raw URL into Claude, Cursor, or any agent.",
0 commit comments