You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
I created some posts with a type property, and found that it breaks the layout. It seems that layout is set as type on the object passed to the page component. It appears to still contain the layout value when a type is used in the head, but somewhere it breaks things because the layout is not being used in page rendering.
As a side note I think it would be useful to have a warning or error when setting a layout that is not registered. Currently it silently falls back to Page.
The text was updated successfully, but these errors were encountered:
Indeed layout used is type || layout. Maybe this is not documented but it's like that since the beginning.
I guess we should show warnings indeed. Will revisit this for 1.0.0
I created some posts with a
type
property, and found that it breaks the layout. It seems thatlayout
is set astype
on the object passed to the page component. It appears to still contain the layout value when a type is used in the head, but somewhere it breaks things because the layout is not being used in page rendering.As a side note I think it would be useful to have a warning or error when setting a layout that is not registered. Currently it silently falls back to
Page
.The text was updated successfully, but these errors were encountered: