Skip to content

Commit 6195ae1

Browse files
authored
Merge pull request #22 from nkdAgility/update-for-empty-user-images
Fix missing user image display in author component
2 parents 01bebc2 + 48d286b commit 6195ae1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/layouts/_partials/components/guide/guide-author.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
<img src="https://avatars.githubusercontent.com/{{ $author.githubUsername }}?size=24" alt="{{ $author.name }}" aria-label="Profile picture of {{ $author.name }}" class="author-avatar rounded-circle me-1" style="width: 24px; height: 24px; object-fit: cover;" />
1717
{{- else if $author.image }}
1818
<img src="{{ $author.image }}" alt="{{ $author.name }}" aria-label="Profile picture of {{ $author.name }}" class="author-avatar rounded-circle me-1" style="width: 24px; height: 24px; object-fit: cover;" />
19+
{{- else }}
20+
<img src="/images/missing-user.png" alt="{{ $author.name }}" aria-label="Profile picture of {{ $author.name }}" class="author-avatar rounded-circle me-1" style="width: 24px; height: 24px; object-fit: cover;" />
1921
{{- end }}
2022
{{- if not $lightList }}
2123
{{- if $author.url }}

0 commit comments

Comments
 (0)