mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 05:21:42 +00:00
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