diff --git a/app/views/posts/attribute_ro/_image.haml b/app/views/posts/attribute_ro/_image.haml index a50d441..c400985 100644 --- a/app/views/posts/attribute_ro/_image.haml +++ b/app/views/posts/attribute_ro/_image.haml @@ -1,6 +1,7 @@ %tr{ id: attribute } %th= post_label_t(attribute, :path, post: post) %td - %figure - = image_tag metadata.value['path'], alt: metadata.value['description'] - %figcaption= metadata.value['description'] + - if metadata.value['path'].present? + %figure + = image_tag metadata.value['path'], alt: metadata.value['description'] + %figcaption= metadata.value['description']