From f3dfa0c6fa0a440ca79b0ecd15f1ec9939704351 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 20 Jun 2026 05:24:16 +0000 Subject: [PATCH 1/3] fix(author): show articles before podcast episodes, add section-aware 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 --- .../layouts/taxonomy/author.html | 74 ++++++++++++++++--- 1 file changed, 63 insertions(+), 11 deletions(-) diff --git a/themes/powershell-community/layouts/taxonomy/author.html b/themes/powershell-community/layouts/taxonomy/author.html index 82074b62c..a89380595 100644 --- a/themes/powershell-community/layouts/taxonomy/author.html +++ b/themes/powershell-community/layouts/taxonomy/author.html @@ -16,6 +16,13 @@

{{ .Title }}

+ + {{ $articles := where .Pages "Section" "articles" }} + {{ $podcasts := where .Pages "Section" "podcast" }} + + + {{ $combined := $articles | append $podcasts }} +
@@ -24,18 +31,61 @@

{{ .Title }}

{{ .Title }}

-

{{ .Pages | len }} article{{ if gt (.Pages | len) 1 }}s{{ end }} published

+

+ {{ len $articles }} article{{ if ne (len $articles) 1 }}s{{ end }} + {{ if $podcasts }} +  •  {{ len $podcasts }} podcast episode{{ if ne (len $podcasts) 1 }}s{{ end }} + {{ end }} +

- +
- {{ $paginator := .Paginate .Pages }} + {{ $paginator := .Paginate $combined }} {{ range $paginator.Pages }} -
+ + {{ if eq .Section "podcast" }} + +
+
+
+ +
+
+
+
+ + Podcast Episode + + + {{ if .ReadingTime }} + + + {{ .ReadingTime }} min + {{ end }} +
+

+ + {{ .Title }} + +

+

{{ .Summary }}

+ +
+
+ + {{ else }} +
@@ -59,7 +109,7 @@

{{ .Summary }}

- Read Article @@ -75,6 +125,8 @@

+ {{ end }} +
{{ end }}
@@ -84,27 +136,27 @@