From d5c83a58108a4b07c0f98e258676706a87eff1f8 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 13 May 2017 03:10:35 +0200 Subject: [PATCH] Fix image mixin to allow figure with no args --- website/_includes/_mixins.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/_includes/_mixins.jade b/website/_includes/_mixins.jade index 2f89b0ec4..fbbc3f0d8 100644 --- a/website/_includes/_mixins.jade +++ b/website/_includes/_mixins.jade @@ -126,13 +126,13 @@ mixin codepen(slug, height, default_tab) mixin image(url, width, caption, alt) figure.o-block&attributes(attributes) - img(src=url alt=(alt || caption) width="#{width || 500}") + if url + img(src=url alt=(alt || caption) width="#{width || 500}") if caption +image-caption=caption - else - block + block //- Image caption