Skip to content

Commit 2273735

Browse files
HeyItsGilbertclaude
andcommitted
feat(authors): show author avatar in single-page byline
Replace the generic fa-user icon next to the byline with the author's avatar, resolving the byline to its taxonomy term page and reusing the author-avatar partial (avatar -> gravatar -> identicon fallback), so un-enriched authors still get a sensible image. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 37ea54e commit 2273735

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • themes/powershell-community/layouts/_default

themes/powershell-community/layouts/_default/single.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,9 @@ <h1 class="text-3xl lg:text-4xl font-bold text-gray-900 mb-4 leading-tight">{{ .
4646
<div class="flex items-center justify-between">
4747
<div class="flex items-center space-x-4">
4848
{{ with .Params.author }}
49+
{{ $authorPage := site.GetPage (printf "/authors/%s" (. | urlize)) }}
4950
<div class="flex items-center text-gray-600">
50-
<div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center mr-3">
51-
<i class="fas fa-user text-white text-sm"></i>
52-
</div>
51+
{{ partial "author-avatar.html" (dict "page" $authorPage "name" . "size" 64 "class" "w-8 h-8 rounded-full object-cover mr-3") }}
5352
<a href="{{ "/authors/" | relURL }}{{ . | urlize }}/" class="font-medium hover:text-blue-600 transition-colors duration-200">{{ . }}</a>
5453
</div>
5554
{{ end }}

0 commit comments

Comments
 (0)