no fallar si no hay template
This commit is contained in:
parent
9fd73d0c38
commit
a60f24c82b
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ class Post
|
|||
|
||||
# Determina si el post lleva contenido o es solo front_matter
|
||||
def content?
|
||||
template.fetch_front_matter('has_content', true)
|
||||
template && template.fetch_front_matter('has_content', true)
|
||||
end
|
||||
|
||||
# imita Model.update_attributes de ActiveRecord
|
||||
|
|
Loading…
Reference in a new issue