las etiquetas y categorías siempre son un array

This commit is contained in:
f 2018-05-08 18:00:19 -03:00
parent 7c6e54c539
commit 35357c318f
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -137,11 +137,11 @@ class Post
end end
def tags def tags
get_front_matter 'tags' get_front_matter 'tags' || []
end end
def categories def categories
get_front_matter 'categories' get_front_matter 'categories' || []
end end
alias :category :categories alias :category :categories