Category List
The Claude generated scaffold for my new Hugo site didn’t include a category list page. I’m pretty sure that I could figure out how to pull one off given enough fiddling, but lets see what Claude can do for me.
add a new page that lists all the categories used in blog posts. for each category include count and link goes to a list of the posts in that category. link to the new page from the current /blog route.
Looked pretty good. Had a list of the categories, but missed the counts I asked for.
the new terms page is missing the count of posts for each tag
Ok, that’s better. It also switched formatting to use boxes, similar to the Elsewhere page. The drill down to posts under the categories worked, but only include post name and date. Let’s tune that up.
on the category detail page, can you make the per post formatting match what’s in
/blog? ie: include categories and summary of the post. be careful to prevent html entities from being shown.
Now we’re talking. Back to the category list screen; let’s make that a little more fancy:
on the
/categoriesscreen, can you add client side functionality to sort the list of categories by name (alphabetically ascending) or by number of tags (count descending).
Cool, that just worked™. Ok, one more little tune up; How about using 3 columns for categories to use space better?
on
/categories/, the category names are pretty short. can we use 3 columns instead of 2?
Again, it got it right on the first try. It also noted that it was careful no to mess up the formatting on the Elsewhere page, because in the in the previous iteration it shared the same styles. Smooth.
So, here you go, my new Categories list page.