diff --git a/app/models/post.rb b/app/models/post.rb index 0a7b959..0c4e017 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -19,7 +19,7 @@ class Post < OpenStruct # TODO: Reemplazar cuando leamos el contenido del Document # a demanda? def find_layout(path) - IO.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.to_sym + IO.foreach(path).lazy.grep(/^layout: /).take(1).first&.split(' ')&.last&.tr('\'', '')&.tr('"', '')&.to_sym end end