Inheriting layout front matter #843
Unanswered
alvincrespo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to inherit a "body_class" variable from a child layout, not entirely sure how to do this. Here is a quick example:
src/_layouts/post.liquid
src/_layouts/default.liquid
Right now I have to specify this in the resource which basically means having to repeat this variable for each post. I could also just copy/paste the default layout, and hardcode the class, but I'd like to avoid that.
Anyways, loving this project! Thank you all for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions