5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:11:41 +00:00

eliminar comillas del layout

This commit is contained in:
f 2020-12-14 12:20:39 -03:00
parent b113432032
commit 42d22458a0

View file

@ -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