5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-07 09:35:45 +00:00

dirty hack

This commit is contained in:
f 2018-06-26 20:03:52 -03:00
parent 7e7b7e7450
commit 0afa42ede9
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7

View file

@ -8,8 +8,8 @@
-# El grupo individual, tenemos que crear uno si el post es nuevo, o
-# todos los que sean necesarios si estamos editando un post.
- if @post.new?
-# Creamos un array vacío solo para poder tener acceso a :each
- groups = []
-# Creamos un array con un elemento solo para poder tener acceso a :each
- groups = [[]]
- else
-# Obtenemos todos los valores. Puede ser un Hash o un Array
- groups = @post.get_front_matter(template.key)