Skip to content

Commit 4a114e2

Browse files
committed
fix(author): exclude non-episode posts from podcast count on author pages
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
1 parent ea3690f commit 4a114e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • themes/powershell-community/layouts/taxonomy

themes/powershell-community/layouts/taxonomy/author.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ <h1 class="text-4xl lg:text-5xl font-bold mb-2">{{ .Title }}</h1>
1818
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
1919

2020
{{ $articles := where .Pages "Section" "articles" }}
21-
{{ $podcasts := where .Pages "Section" "podcast" }}
21+
{{ $podcastAll := where .Pages "Section" "podcast" }}
22+
{{ $podcasts := where $podcastAll "Params.podcast_url" "!=" nil }}
2223

2324
<!-- Articles before podcast episodes so authored content appears first -->
2425
{{ $combined := $articles | append $podcasts }}

0 commit comments

Comments
 (0)