make figures full width instead of images
This commit is contained in:
parent
0cf8f51b40
commit
e6fb03960d
1 changed files with 5 additions and 5 deletions
|
@ -17,9 +17,9 @@ module BlogHelper
|
||||||
def figure(img_url, caption, alt = nil, img_class: nil)
|
def figure(img_url, caption, alt = nil, img_class: nil)
|
||||||
alt ||= caption
|
alt ||= caption
|
||||||
<<~HTML
|
<<~HTML
|
||||||
<figure class="image">
|
<figure class="image" class="#{img_class}">
|
||||||
<a href="#{img_url}">
|
<a href="#{img_url}">
|
||||||
<img src="#{img_url}" alt="#{alt}" class="#{img_class}">
|
<img src="#{img_url}" alt="#{alt}">
|
||||||
</a>
|
</a>
|
||||||
<figcaption>#{caption}</figcaption>
|
<figcaption>#{caption}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
Loading…
Reference in a new issue