Skip to content

Commit 79fbfd0

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 7e319e7 commit 79fbfd0

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

  • themes/powershell-community/layouts/_default

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ <h1 class="text-3xl lg:text-4xl font-bold text-gray-900 mb-4 leading-tight">{{ .
4949
<div class="flex items-center justify-between">
5050
<div class="flex items-center space-x-4">
5151
{{ with .Params.author }}
52+
{{ $authorPage := site.GetPage (printf "/authors/%s" (. | urlize)) }}
5253
<div class="flex items-center text-gray-600">
53-
<div class="w-8 h-8 bg-blue-600 rounded-full flex items-center justify-center mr-3">
54-
<i class="fas fa-user text-white text-sm"></i>
55-
</div>
56-
<a href="{{ " /authors/" | relURL }}{{ . | urlize }}/"
57-
class="font-medium hover:text-blue-600 transition-colors duration-200">{{ . }}</a>
54+
{{ partial "author-avatar.html" (dict "page" $authorPage "name" . "size" 64 "class" "w-8 h-8 rounded-full object-cover mr-3") }}
55+
<a href="{{ "/authors/" | relURL }}{{ . | urlize }}/" class="font-medium hover:text-blue-600 transition-colors duration-200">{{ . }}</a>
5856
</div>
5957
{{ end }}
6058
<span class="text-gray-400"></span>

0 commit comments

Comments
 (0)