-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for custom data mapping #110
Comments
+1 here! Specifically not being able to set |
Hi - More in details: substitution of liquid tags does not seem to be recursively applied. In other words: you can reference and use data fields directly in your layouts, but you cannot define a front-matter variable in a layout, based on a data field and have its content replaced in the layout. Hence if you use the data fields directly, you should be fine. (Detailed explanation below.) Whether this is a bug of the plugin, a bug of Jekyll or a feature of both, to be honest, I can't tell. Detailed Explanation Consider the example directory and let us use a new layout:
where
Notice that the
The line referencing However, if we use one level of "indirection", that is, we define variables in the front-matter of a layout and try to use them in another layout, the liquid tags are not replaced. That is, if:
where
Then we get the following:
That is, |
Anybody think of a way to solve this problem using this plugin |
Hello,
Is it possible to use custom data mapping? For example I would like to be able to control other elements - specifically the
subtitle
, and perhapsshow_sidebar
which is part of the ??front matter??. Please excuse my ignorance - I'm very new to jekyll.Right now
subtitle: scenario
seems to be ignoredThanks,
Andrew
The text was updated successfully, but these errors were encountered: