Tags: /tags/ lists the 148 used on five or more pages; resource pages show all theirs as keywords

Merged
LU
1d ago
+45-15

Tags were mostly clutter. Of 1,691 tags, 1,220 appear on only one page, and only 148 appear on five or more. The A to Z list on /tags/ was mostly dead ends, and resource pages showed rows of chips, most of them leading to a list of one.

Now /tags/ and the tag chips on news and other pages show only tags used on five or more pages. Resource pages are different: there the tags describe the resource, and the rare ones are often the most specific ("Gender Bias", "Representation in Science"). So a resource lists all of its tags as one line of keywords instead of chips. Tags on five or more pages link to their list on /tags/; rarer ones are plain text.

Nothing is deleted. Every tag still works in /tags/?tag=, where old /tag/<term>/ links from search engines arrive, and in site search. Tag data is generated from the resource sheet and is unchanged. The cut-off is one number, $min in layouts/partials/functions/tag_counts.html. At 10 the list drops to 66 tags.

/tags/ is the third most visited page over the past year (4,178 views, data/ga_data.json). This is probably mostly old tag links redirected there, which this change keeps working.

Based on #1118.

Checks: SEO, source rules and unit tests pass. The design check reports one floating-button finding on /about/ at 1800 px, a page this PR doesn't touch.

/tags/, desktop

Tags page, desktop: before and after

/tags/, phone

Tags page, phone: before and after

Keywords on a resource page (Addressing the issue of representation…). Desktop:

Resource page keywords, desktop: before and after

Phone:

Resource page keywords, phone: before and after

Created with Claude Opus 5.5 in Claude Code.

šŸ¤– Generated with Claude Code


Summary by cubic

Tags were mostly clutter, so /tags/ and resource page tag chips now show only the 148 tags used on five or more pages.

  • Of 1,691 tags, 1,220 appear on only one page, which made the A to Z list mostly dead ends and resource pages show rows of one-off chips.
  • The change keeps 3,341 of the 5,381 chips on resource pages, and 1,207 of the 1,338 tagged resources still show at least one tag.
  • Nothing is deleted: every tag still works in /tags/?tag= (where old /tag/<term>/ links from search engines arrive) and in site search.
  • The cut-off is one number, $min, in layouts/partials/functions/tag_counts.html; at 10 the list drops to 66 tags.