mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:11:42 +00:00
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
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue