mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-11-04 09:27:58 +00:00 
			
		
		
		
	Replaced object by svg
This commit is contained in:
		@@ -4,11 +4,11 @@
 | 
			
		||||
            <div class="card-img-top">
 | 
			
		||||
                {% if card.icon.cache %}
 | 
			
		||||
                    {% 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 %}
 | 
			
		||||
                                <i class="{{ card.icon.class }}"></i>
 | 
			
		||||
                            {% endif %}
 | 
			
		||||
                        </object>
 | 
			
		||||
                        </svg>
 | 
			
		||||
                    {% else %}
 | 
			
		||||
                        <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';">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user