mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 11:21:42 +00:00
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?
|
||||
- value = nf.values
|
||||
- else
|
||||
- value = @post.get_front_matter(template)[nf]
|
||||
- value = @post.get_front_matter(template.key).try(:[], nf.key)
|
||||
= render 'posts/template_field/nested',
|
||||
template: nf,
|
||||
value: value,
|
||||
|
|
Loading…
Reference in a new issue