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