seo: fix crawlability, restructure site, and improve internal linking#166
Merged
seo: fix crawlability, restructure site, and improve internal linking#166
Conversation
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
Skill Validation ReportNo skill files were changed in this PR — validation skipped. |
raymondk
approved these changes
Apr 15, 2026
This was referenced Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Google only indexed the homepage despite 19 skill pages existing. Root cause: skill cards used
div+onClickinstead of<a href>, leaving no crawlable path to skill subpages.Changes
Critical crawlability fix
div+onClickcards with a stretched cover-link pattern — an absolute-positioned<a href>sits beneath the card content so the entire card is crawlable without nesting anchors (which would make download/GitHub buttons invalid HTML). This supersedes feat: improve SEO by adding <a> to skills from main page #165, which used a similar CSS::afterapproach on the title anchor only.New
/skills/hub pagesrc/pages/skills/index.astro— gives Google a canonical entry point with all skill cards as real crawlable links; mounts BrowseTab as a Preact islandHomepage restructured as marketing page
src/pages/index.astrorewritten as a fully static page (no Preact island) — faster, crawlable from the start/skills/#<category>and shows up to 3 skill namesSkill page internal linking
skills/[slug]/index.astro: added visible breadcrumb nav, BreadcrumbList JSON-LD, related-skills grid (up to 5 same-category skills), and prev/next skill navigationBaseLayout:prevUrl/nextUrlprops emit<link rel="prev/next">in<head>Hash-based category URL sync
window.location.hashon mount to pre-filter by category (so/skills/#DeFilands directly on DeFi skills)history.replaceState— shareable, bookmarkable filter stateNav simplified
/(now a marketing page)/skills/), how it works, get startedSitemap
astro.config.mjs: addedlastmod: new Date()to sitemap integration so Google sees freshness signalsSEO checklist
<a href>)/skills/hub page<lastmod>in sitemapNotes
src/andastro.config.mjs