no fallar si el campo no tiene valor
This commit is contained in:
parent
66e37ca736
commit
688459d64e
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
||||||
- if @post.new?
|
- if @post.new?
|
||||||
- value = nf.values
|
- value = nf.values
|
||||||
- else
|
- else
|
||||||
- value = @post.get_front_matter(template)[nf]
|
- value = @post.get_front_matter(template.key).try(:[], nf.key)
|
||||||
= render 'posts/template_field/nested',
|
= render 'posts/template_field/nested',
|
||||||
template: nf,
|
template: nf,
|
||||||
value: value,
|
value: value,
|
||||||
|
|
Loading…
Reference in a new issue