Commit 2d3e414
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
- content/podcast
- scripts
- themes/powershell-community/layouts/taxonomy
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 2 additions & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 1 addition & 0 deletions
Lines changed: 2 additions & 0 deletions
0 commit comments