Add very basic placeholder avatars

This commit is contained in:
Lewis Dale 2023-10-21 10:57:09 +01:00
parent 5d215d73b8
commit 058c7e2483
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ eleventyComputed:
<div class="row overlaps">
{% for like in post.comments.like %}
<a href="{{ like.author.url }}" rel="noreferrer" target="_blank">
<img src="{{ like.author.avatars["96"] }}" alt="{{ like.author.name }}" class="circle" />
<img srcset="/assets/avatar-placeholder.png, {{ like.author.avatars["96"] }}" alt="{{ like.author.name }}" class="circle" />
</a>
{% endfor %}
</div>
@ -46,7 +46,7 @@ eleventyComputed:
<div class="row overlaps">
{% for like in post.comments.repost %}
<a href="{{ like.author.url }}" rel="noreferrer" target="_blank">
<img src="{{ like.author.avatars["96"] }}" alt="{{ like.author.name }}" class="circle" />
<img srcset="/assets/avatar-placeholder.png, {{ like.author.avatars["96"] }}" alt="{{ like.author.name }}" class="circle" />
</a>
{% endfor %}
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB