1
0
Fork 0

Avoid showing a broken image when there is no feed icon

This commit is contained in:
Frédéric Guillot 2021-02-22 21:09:03 -08:00 committed by fguillot
parent ec3c604a83
commit 53cd369b05

View file

@ -4,7 +4,7 @@
<article class="item {{ if ne .ParsingErrorCount 0 }}feed-parsing-error{{ end }}">
<div class="item-header" dir="auto">
<span class="item-title">
{{ if .Icon }}
{{ if and (.Icon) (gt .Icon.IconID 0) }}
<img src="{{ route "icon" "iconID" .Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Title }}">
{{ end }}
{{ if .Disabled }} 🚫 {{ end }}