-
Notifications
You must be signed in to change notification settings - Fork 11
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
theme namespace #35
Comments
Thank you for requesting this feature. I think I shall first open a PR to have this entire feature-set included in Jekyll itself. If it gets accepted there, then awesome. Otherwise, i'll ship the enhancement as part of this plugin.. |
Thank you for the reply. Please let me know the result then, thanks~ |
By the way, i think u can also add this feature here as a temporary resolution, for older version of jekyll even if the jekyll official accepted your PR. |
Just leaving a note here that I've not forgotten about this. |
I have a theme with a little long name, like
jekyll-theme-xxxx-xxx
. The theme have some config variables, likeI use the variables as
site.xxxx.someKey
in my templates. However i find it a little boring to refer them.I noticed that you registered a default namespace for theme: [theme-name], which is awesome!!!
However, if i want to refer to my variables as
theme.someKey
, i have to change the namespacexxxx
tojekyll-theme-xxxx-xx
which is the theme name. But i still want to refer some variables directly, I have to do it likesite.jekyll-theme-xxxx-xxx.anotherKey
instead ofsite.xxxx.anotherKey
.What i mean, is it possible to give me a chance to specify a short theme namespace key, as a primary choice? Like:
By this way, i can use
theme.someKey
or directlysite.xxxx.anotherKey
in templates then.Thank you!
The text was updated successfully, but these errors were encountered: