mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-11-04 01:18:09 +00:00 
			
		
		
		
	Added include svgs
This commit is contained in:
		@@ -2,25 +2,16 @@
 | 
			
		||||
  <div class="card h-100 d-flex flex-column">
 | 
			
		||||
    <div class="card-body d-flex flex-column">
 | 
			
		||||
      <div class="card-img-top">
 | 
			
		||||
        {% if card.icon.cache %}
 | 
			
		||||
          {% if card.icon.cache.endswith('.svg') %}
 | 
			
		||||
            <object
 | 
			
		||||
              type="image/svg+xml"
 | 
			
		||||
              data="{{ url_for('static', filename=card.icon.cache) }}"
 | 
			
		||||
              style="width:100px; height:auto;">
 | 
			
		||||
              {% if card.icon.class %}
 | 
			
		||||
                <i class="{{ card.icon.class }}"></i>
 | 
			
		||||
              {% endif %}
 | 
			
		||||
            </object>
 | 
			
		||||
          {% else %}
 | 
			
		||||
            <img
 | 
			
		||||
              src="{{ url_for('static', filename=card.icon.cache) }}"
 | 
			
		||||
              alt="{{ card.title }}"
 | 
			
		||||
              style="width:100px; height:auto;"
 | 
			
		||||
              onerror="this.style.display='none'; this.nextElementSibling?.style.display='inline-block';">
 | 
			
		||||
            {% if card.icon.class %}
 | 
			
		||||
              <i class="{{ card.icon.class }}" style="display:none;"></i>
 | 
			
		||||
            {% endif %}
 | 
			
		||||
        {% if card.icon.cache and card.icon.cache.endswith('.svg') %}
 | 
			
		||||
          {{ include_svg(card.icon.cache) }}
 | 
			
		||||
        {% elif card.icon.cache %}
 | 
			
		||||
          <img
 | 
			
		||||
            src="{{ url_for('static', filename=card.icon.cache) }}"
 | 
			
		||||
            alt="{{ card.title }}"
 | 
			
		||||
            style="width:100px; height:auto;"
 | 
			
		||||
            onerror="this.style.display='none'; this.nextElementSibling?.style.display='inline-block';">
 | 
			
		||||
          {% if card.icon.class %}
 | 
			
		||||
            <i class="{{ card.icon.class }}" style="display:none;"></i>
 | 
			
		||||
          {% endif %}
 | 
			
		||||
        {% elif card.icon.class %}
 | 
			
		||||
          <i class="{{ card.icon.class }}"></i>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user