bugs
This commit is contained in:
parent
6dd7b2a85f
commit
56ad911dc1
2 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ class Post
|
|||
end
|
||||
|
||||
def check_box_group?
|
||||
array? && contents.fetch('checkbox', false)
|
||||
array? && (complex? && contents.fetch('checkbox', false))
|
||||
end
|
||||
|
||||
def array?
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
- else
|
||||
- url = site_post_path(@site, @post, lang: @lang)
|
||||
- method = :patch
|
||||
- if pre = @post.template.get_front_matter('pre')
|
||||
- if pre = @post.template.try(:get_front_matter, 'pre')
|
||||
= render 'layouts/help', help: CommonMarker.render_doc(pre).to_html
|
||||
= form_tag url,
|
||||
method: method,
|
||||
|
@ -136,5 +136,5 @@
|
|||
= submit_tag t('posts.save_incomplete'), class: 'btn btn-info submit-post-incomplete', name: 'commit_incomplete'
|
||||
.invalid_help.alert.alert-danger.d-none= @site.config.dig('invalid_help') || t('posts.invalid_help')
|
||||
.sending_help.alert.alert-success.d-none= @site.config.dig('sending_help') || t('posts.sending_help')
|
||||
- if post = @post.template.get_front_matter('post')
|
||||
- if post = @post.template.try(:get_front_matter, 'post')
|
||||
= render 'layouts/help', help: CommonMarker.render_doc(post).to_html
|
||||
|
|
Loading…
Reference in a new issue