mirror of
https://github.com/kevinveenbirkenbach/homepage.veen.world.git
synced 2025-07-17 23:04:25 +02:00
Replaced object by svg
This commit is contained in:
parent
9ada9acb3a
commit
cc0fc9b77f
@ -4,11 +4,11 @@
|
|||||||
<div class="card-img-top">
|
<div class="card-img-top">
|
||||||
{% if card.icon.cache %}
|
{% if card.icon.cache %}
|
||||||
{% if card.icon.cache.endswith('.svg') %}
|
{% if card.icon.cache.endswith('.svg') %}
|
||||||
<object type="image/svg+xml" data="{{ card.icon.cache }}" style="width:100px; height:auto;">
|
<svg type="image/svg+xml" data="{{ card.icon.cache }}" style="width:100px; height:auto;">
|
||||||
{% if card.icon.class %}
|
{% if card.icon.class %}
|
||||||
<i class="{{ card.icon.class }}"></i>
|
<i class="{{ card.icon.class }}"></i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</object>
|
</svg>
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{{ card.icon.cache }}" alt="{{ card.title }}" style="width:100px; height:auto;"
|
<img src="{{ card.icon.cache }}" alt="{{ card.title }}" style="width:100px; height:auto;"
|
||||||
onerror="this.style.display='none'; var icon=this.nextElementSibling; if(icon) icon.style.display='inline-block';">
|
onerror="this.style.display='none'; var icon=this.nextElementSibling; if(icon) icon.style.display='inline-block';">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user