From 35357c318f944c59b856004afbbbc2f1ed03f0d2 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 8 May 2018 18:00:19 -0300 Subject: [PATCH] =?UTF-8?q?las=20etiquetas=20y=20categor=C3=ADas=20siempre?= =?UTF-8?q?=20son=20un=20array?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/post.rb b/app/models/post.rb index 80229da1..7b2ff40e 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -137,11 +137,11 @@ class Post end def tags - get_front_matter 'tags' + get_front_matter 'tags' || [] end def categories - get_front_matter 'categories' + get_front_matter 'categories' || [] end alias :category :categories