eliminar comillas del layout
This commit is contained in:
parent
b113432032
commit
42d22458a0
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class Post < OpenStruct
|
||||||
# TODO: Reemplazar cuando leamos el contenido del Document
|
# TODO: Reemplazar cuando leamos el contenido del Document
|
||||||
# a demanda?
|
# a demanda?
|
||||||
def find_layout(path)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue