diff --git a/app/models/post.rb b/app/models/post.rb index b32e034..f26139c 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -216,7 +216,11 @@ class Post def front_matter_from_template return {} unless @template - @template.front_matter + # Convertimos el slug en layout + ft = @template.front_matter.dup + ft['layout'] = ft.delete('slug') + + ft end # Genera un post nuevo y lo agrega a la colección del sitio.