Skip to content

Commit 2d3e414

Browse files
fix(author): show articles before podcast episodes with section-aware styling (#24)
## Problem Author pages (e.g. `/authors/james-petty/`) were showing what looked like "unrelated articles" — the page was dominated by podcast episode titles like *"The PowerShell Podcast Learning PowerShell in 2026 with Tara"* and *"The PowerShell Podcast Zero Trust and PowerShell in K12 with Jim Tyler"*, which look like content about other people, not James Petty. **Root cause — two issues in `layouts/taxonomy/author.html`:** 1. **Wrong ordering**: The paginator used Hugo's default date-descending sort across all content. James Petty has 220 recent podcast episodes and only 25 written articles. Since episodes are more recent, all 22 pages of results were podcast interviews before any actual articles appeared. 2. **Missing section-aware styling**: Podcast episodes were rendered with article styling (blue file icon, "Read Article" button), so there was no visual signal that they were podcast interviews with various guests rather than articles by James Petty. ## Fix - **Articles first**: Uses `where .Pages "Section" "articles"` and `append` to place written articles before podcast episodes in the paginator. - **Section-aware rendering**: Podcast episodes now render with purple podcast styling (podcast icon, "Listen to Episode" button), matching the `list.html` pattern already used elsewhere on the site. - **Clearer summary**: The author card now shows separate counts — e.g. "25 articles • 220 podcast episodes" — so the scope of the page is immediately clear. ## Before / After | Before | After | |--------|-------| | Page 1: 10 podcast episodes about various guests | Page 1: 10 of James Petty's written articles | | No visual distinction between article vs podcast | Articles = blue styling; podcasts = purple styling | | "25 articles published" | "25 articles • 220 podcast episodes" | --- _Generated by [Claude Code](https://claude.ai/code/session_01FNNC3yU5uCsjfcts7GGVow)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 361267a commit 2d3e414

200 files changed

Lines changed: 713 additions & 11 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/podcast/2008-06-08-episode-29-exchange-with-ilse-van-criekinge.md

Lines changed: 1 addition & 0 deletions

content/podcast/2008-09-23-episode-42-with-greg-shields.md

Lines changed: 1 addition & 0 deletions

content/podcast/2009-01-18-episode-55-jeff-hicks-in-for-hal-and-an-interview-with-james-brundage.md

Lines changed: 1 addition & 0 deletions

content/podcast/2009-02-22-episode-60-scripting-ui-with-joel-bennett-and-james-brundage.md

Lines changed: 2 additions & 0 deletions

content/podcast/2009-07-06-episode-75-poshcode-with-mvps-joel-bennett-and-oisin-grehan.md

Lines changed: 2 additions & 0 deletions

content/podcast/2009-10-25-episode-89-powershell-v2-launch-party-with-distinguished-engineer-jeffrey-snover.md

Lines changed: 1 addition & 0 deletions

content/podcast/2009-11-01-episode-90-scom-with-jeremy-pavleck-and-scott-moss-with-special-guest-host-jonthan-medd.md

Lines changed: 2 additions & 0 deletions

content/podcast/2009-11-16-episode-92-the-bsonposh-module-with-mvp-brandon-shell.md

Lines changed: 1 addition & 0 deletions

content/podcast/2009-11-17-recording-tonight-with-jeff-atwood.md

Lines changed: 1 addition & 0 deletions

content/podcast/2010-03-14-episode-105-pscx-2-0-with-keith-hill-and-oisin-grehan.md

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)