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