Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/toryanderson/hugo-icarus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/widgets/recent_articles.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/widgets/recent_articles.html b/layouts/partials/widgets/recent_articles.html
index b224865..d765220 100644
--- a/layouts/partials/widgets/recent_articles.html
+++ b/layouts/partials/widgets/recent_articles.html
@@ -9,7 +9,7 @@
<li>
<div class="item-thumbnail">
<a href="{{ .Permalink }}" class="thumbnail">
- {{ if isset .Params "banner" }}
+ {{ if and (isset .Params "banner") (not (eq .Params.banner "")) }}
<span style="background-image:url({{ .Params.banner | absURL }})" alt="{{ $.Title }}" class="thumbnail-image"></span>
{{else}}
<span class="thumbnail-image thumbnail-none"></span>