Skip to content

fix(author): show articles before podcast episodes with section-aware styling#24

Merged
HeyItsGilbert merged 3 commits into
mainfrom
claude/author-pages-unrelated-articles-swn6vd
Jun 20, 2026
Merged

fix(author): show articles before podcast episodes with section-aware styling#24
HeyItsGilbert merged 3 commits into
mainfrom
claude/author-pages-unrelated-articles-swn6vd

Conversation

@HeyItsGilbert

Copy link
Copy Markdown
Member

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

… styling

Author pages were dominated by podcast episodes (220+ for James Petty)
which appeared before any written articles because they sort by date and
are more recent. Podcast episodes were also rendered with article styling
(blue icon, "Read Article" button), making interviews titled "with [Guest]"
look like unrelated articles about other people.

- Sort written articles first, podcast episodes after, using where/append
- Render podcast episodes with purple podcast styling (matching list.html)
- Show separate article and episode counts in the author summary card
@netlify

netlify Bot commented Jun 20, 2026

Copy link
Copy Markdown

Deploy Preview for powershellorg ready!

Name Link
🔨 Latest commit 4a114e2
🔍 Latest deploy log https://app.netlify.com/projects/powershellorg/deploys/6a369ed2aee88f0008d68079
😎 Deploy Preview https://deploy-preview-24--powershellorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

claude added 2 commits June 20, 2026 06:00
Wrote and ran scripts/update-podcast-authors.py to extract host and
guest names from 817 podcast episode files and populate the `authors`
frontmatter array, enabling the author taxonomy pages to list episodes
by participant. Extraction uses four strategies in priority order:
bio section headers, "Guest:" body lines, "Tonight's Guest:" title
pattern, and "with Name" title fallback. Also fixes a regex bug where
NOT_A_PERSON_RE lacked word boundaries on "Just", "Set", and "Get",
causing Justin Grote's episodes to be skipped.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNNC3yU5uCsjfcts7GGVow
…ages

Old PowerScripting content includes ~259 announcement posts ("Up Next",
"Recording Tonight", etc.) that live in /podcast/ but have no podcast_url.
These were inflating Jonathan Walz's author page from ~327 real episodes
to 586 total items. Filter $podcasts to only pages with podcast_url set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FNNC3yU5uCsjfcts7GGVow
@HeyItsGilbert HeyItsGilbert marked this pull request as ready for review June 20, 2026 21:45
@HeyItsGilbert HeyItsGilbert enabled auto-merge (squash) June 20, 2026 21:45
@HeyItsGilbert HeyItsGilbert disabled auto-merge June 20, 2026 21:45
@HeyItsGilbert HeyItsGilbert merged commit 2d3e414 into main Jun 20, 2026
5 checks passed
@HeyItsGilbert HeyItsGilbert deleted the claude/author-pages-unrelated-articles-swn6vd branch June 20, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants