a question when layout wrap layout #9065
-
two layout ---
layout: page
attrs: ['attrs01']
---
this layout name is 'home.html'
{{ attrs }} ---
attrs: ['attrs02']
---
this layout name is 'page.html' in my imagination, how can i get 'page.html''s attrs in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Technically, just i.e. the correct notation would be Regarding the topic of this ticket, the reference object is i.e. For a file Projecting downwards, therefore for the page |
Beta Was this translation helpful? Give feedback.
-
@LawssssCat I dug into the codebase. This is what I found: Layout data gets merged hierarchically (parent onto child). The resulting data is exposed to the page as the top-level object So in the case of :
will render the following:
|
Beta Was this translation helpful? Give feedback.
@LawssssCat I dug into the codebase. This is what I found:
Layout data gets merged hierarchically (parent onto child). The resulting data is exposed to the page as the top-level object
{{ layout }}
.So in the case of :
will render the following: