{{ layout }} not showing? #7615
-
Hi I often use this to show what template is in use during development
I thought it'd be useful to also output the But it doesn't seem to work everywhere?
For example
But when I visit a page, even after I've tried creating a new page, Both Any ideas?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
On the page where it's not working, is that a custom route or an entry page? |
Beta Was this translation helpful? Give feedback.
-
We don't provide the We could provide a |
Beta Was this translation helpful? Give feedback.
We don't provide the
layout
variable explicitly. You're only getting it on entry that actually have alayout
variable in their data. (Same thing happens withtemplate
)We could provide a
current_layout
, like we do withcurrent_template
. No one had ever asked for it before. 😄