Sfoglia il codice sorgente

:wrench: Fallback to icon when main image is not available

DricomDragon 1 anno fa
parent
commit
df8a40d86a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/templates/main.html

+ 2 - 0
src/templates/main.html

@@ -77,6 +77,8 @@ $if(title)$
                 <h1 class="title">$title$</h1>
 $if(img.main)$
                 <img class="rounded" src="$img.main.path$"$if(img.main.alt)$ alt="$img.main.alt$"$endif$>
+$elseif(img.icon)$
+                <img class="rounded" src="$img.icon.path$"$if(img.icon.alt)$ alt="$img.icon.alt$"$endif$>
 $endif$
 $if(subtitle)$
                 <h2 class="subtitle">$subtitle$</h2>