mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 19:43:38 +00:00
retrocompatibilidad
This commit is contained in:
parent
2a0279d669
commit
e0ce6700f7
1 changed files with 1 additions and 0 deletions
|
@ -276,6 +276,7 @@ class Post
|
||||||
|
|
||||||
# Obtiene metadatos de forma recursiva
|
# Obtiene metadatos de forma recursiva
|
||||||
def get_front_matter(name)
|
def get_front_matter(name)
|
||||||
|
name = name.to_s if name.is_a? Symbol
|
||||||
@front_matter.dig(*name)
|
@front_matter.dig(*name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue