2018-07-02 22:07:06 +00:00
|
|
|
- if @post.url? name
|
2018-07-20 18:17:34 +00:00
|
|
|
.row
|
|
|
|
- [@post.get_front_matter(name)].flatten.each do |url|
|
|
|
|
.col
|
|
|
|
%img.img-fluid{src: @site.get_url_for_sutty(url)}
|
2018-07-20 16:34:33 +00:00
|
|
|
- name = [name,''] if template.multiple?
|
2018-07-02 20:45:32 +00:00
|
|
|
= file_field_tag field_name_for_post_as_string(name),
|
|
|
|
class: 'form-control',
|
2018-07-24 00:03:57 +00:00
|
|
|
required: template.required? && value.empty?,
|
2018-07-20 16:34:33 +00:00
|
|
|
multiple: template.multiple?,
|
|
|
|
accept: 'image/*'
|
2018-07-20 18:21:12 +00:00
|
|
|
- if template.multiple?
|
|
|
|
%small.text-muted.form-text= t('posts.image.multiple')
|