Fix cardv2 dark mode images (#781)

Signed-off-by: Daniel Gray <dng@disroot.org>
This commit is contained in:
lexi 2022-03-25 03:26:33 +00:00 committed by Daniel Gray
parent 70960fdd38
commit 9787a7e022
No known key found for this signature in database
GPG Key ID: 41911F722B0F9AE3

View File

@ -28,16 +28,20 @@
</div> </div>
<div class="card-body"> <div class="card-body">
<p class="card-text"> <p class="card-text">
<picture>
{% if include.image-dark %}
<source
srcset="{{include.image-dark}}"
media="(prefers-color-scheme: dark)"
>{% endif %}
<img <img
src="{{include.image}}" src="{{include.image}}"
{% if include.image-dark %}
data-theme-src="{{include.image-dark}}"
{% endif %}
height="120" height="120"
width="120" width="120"
class="panel-pic" class="panel-pic"
alt="{{include.title}} logo" alt="{{include.title}} logo"
> >
</picture>
{{ include.description }} {{ include.description }}
{% if include.labels %} {% if include.labels %}
{% assign labels = include.labels | split:"|" %} {% assign labels = include.labels | split:"|" %}