eliminar valores vacios del frontmatter closes #35

This commit is contained in:
f 2018-02-19 17:17:52 -03:00
parent d8823fa6f1
commit 75295531c6
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -232,6 +232,13 @@ class Post
date_to_time!
clean_content!
slugify_title!
remove_empty_front_matter!
end
def remove_empty_front_matter!
@front_matter.delete_if do |k,v|
v.blank?
end
end
# Aplica limpiezas básicas del contenido