Stu Mason
Stu Mason

Activity

StuMason/progress
stumason.dev
TypeScript
Pull Request Opened

PR #38 opened: feat: article TOC, cross-linking, and rightbar

Summary

  • Adds sticky table of contents in the right sidebar for articles with 3+ headings, with scroll-tracking active state via IntersectionObserver
  • Adds collapsible mobile TOC for small screens
  • Adds cross-linking footer with related articles and services sections for internal SEO linking
  • Integrates rehype-slug for automatic heading ID generation and anchor links
  • Fixes 500 error from incorrect location_id query on services table

Test plan

  • Visit an article with multiple headings (e.g. Claude Code troubleshooting guide) and verify TOC appears in right sidebar
  • Click TOC items and verify smooth scroll to correct heading
  • Scroll through article and verify active TOC item highlights
  • Resize to mobile and verify inline collapsible TOC appears
  • Verify related articles and services show in footer
  • Verify article type badge displays for non-blog types (e.g. "Guide")
+478
additions
-147
deletions
7
files changed