feat(modules): add image caption and shadow

This commit is contained in:
Benedikt Rötsch
2017-11-08 13:10:05 +01:00
committed by Benedikt Rötsch
parent 14eb311151
commit 368cf77d5f
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,9 @@
mixin lessonModuleImage(module)
.lesson-module.lesson-module-image
if module.fields.image && module.fields.image.fields.file && module.fields.image.fields.file.url
img.lesson-module-image__image(src=module.fields.image.fields.file.url alt=module.fields.image.fields.title)
figure.lesson-module-image__figure
img.lesson-module-image__image(src=module.fields.image.fields.file.url alt=module.fields.image.fields.title)
if module.fields.caption
figcaption.lesson-module-image__caption= module.fields.caption
else
h3 #{translate('imageErrorTitle', currentLocale.code)}