mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 04:41:43 +00:00
el slug es el layout
This commit is contained in:
parent
cf93ba743d
commit
f589d747fd
1 changed files with 5 additions and 1 deletions
|
@ -216,7 +216,11 @@ class Post
|
|||
def front_matter_from_template
|
||||
return {} unless @template
|
||||
|
||||
@template.front_matter
|
||||
# Convertimos el slug en layout
|
||||
ft = @template.front_matter.dup
|
||||
ft['layout'] = ft.delete('slug')
|
||||
|
||||
ft
|
||||
end
|
||||
|
||||
# Genera un post nuevo y lo agrega a la colección del sitio.
|
||||
|
|
Loading…
Reference in a new issue