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:
authorJonas Kalderstam <jonas@kalderstam.se>2016-07-17 21:53:16 +0300
committerdigitalcraftsman <digitalcraftsman@protonmail.com>2016-08-19 18:49:20 +0300
commitcd9dec23b5b826e861e31c75ec57de0d66a4eaae (patch)
tree5146f1cdf088db6e10c008dcc2ffc27e07d489e5 /layouts
parent173bea856f467c7fe6e0609cee6f60572bb3d0d6 (diff)
Fix rendering issue with empty banner
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>