Add background colors to images (#186)

This commit is contained in:
Hugo Locurcio 2021-01-04 16:54:06 +01:00 committed by GitHub
parent b21ebe6556
commit 2fc24f0c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,11 @@ redirect_from:
<div class="card-image">
<figure class="image is-16by9">
<a href="{{ image.image | relative_url }}">
<img src="{{ image.image | replace: ".", "-thumb." | relative_url }}" alt="{{ image.title }}">
<img
style="background-color: #ccc"
src="{{ image.image | replace: ".", "-thumb." | relative_url }}"
alt="{{ image.title }}"
>
</a>
</figure>
</div>