mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-20 05:14:35 -05:00
Add support for dark color-scheme logos to recommendation-card.html
Specify `logo_dark` in yaml
This commit is contained in:
parent
29037a6500
commit
becbf3ddcb
@ -1,6 +1,7 @@
|
||||
title: Invidious
|
||||
type: Recommendation
|
||||
logo: /assets/img/video-streaming/invidious.svg
|
||||
logo_dark: /assets/img/video-streaming/invidious-dark.svg
|
||||
description: |
|
||||
<strong>Invidious</strong> is a free and open source front end for YouTube that is also self-hostable. There are list of <a href="https://instances.invidious.io">public instances</a>. Some instances have <a href="https://www.torproject.org">Tor</a> onion services support.
|
||||
|
||||
|
@ -2,7 +2,12 @@
|
||||
<div class="card-body">
|
||||
<div class="row p-3">
|
||||
<div class="col-12 col-sm-4 col-md-3 text-center">
|
||||
<img src="{{ item.logo }}" alt="{{ item.name }} logo" class="py-5 w-75">
|
||||
<picture>
|
||||
{% if item.logo_dark %}<source
|
||||
srcset="{{ item.logo_dark }}"
|
||||
media="(prefers-color-scheme: dark)">{% endif %}
|
||||
<img src="{{ item.logo }}" alt= "{{ item.name }} logo" class="py-5 w-75">
|
||||
</picture>
|
||||
</div>
|
||||
<div class="col-12 col-sm-8 col-md-9 text-center text-md-start pb-4">
|
||||
<h2>{{ item.title }}</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user