feat: link section use-case headings to their subcategory pages

With tags now pointing at section anchors instead of filtering in place, subcategory pages (74 clicks and 19.7K impressions in the last 3 months) had no other internal links pointing to them.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-09-27 00:21:12 +08:00
parent 62a4e7c4e5
commit 52915911d4
No known key found for this signature in database
GPG key ID: B93DE4F003C33630
2 changed files with 3 additions and 1 deletions

View file

@ -990,6 +990,7 @@ class TestBuild:
positions = [html.index(marker) for marker in ('<h2 id="small">', ">w2</a", ">w1</a", '<h2 id="large">', ">w3</a")]
assert positions == sorted(positions)
assert '<a class="jump-link" href="#small">Small</a>' in html
assert '<a href="/categories/widgets/small/">Small</a>' in html
assert '<tr class="desc-row">' in html
subcategory_html = (site / "widgets" / "small" / "index.html").read_text(encoding="utf-8")