-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
if hexo-config support get attr from site config file #11
Comments
@cbvar I just faced the same problem. It looks like we have to use the theme configuration ( @tommy351 Would it not make sense to allow looking up in the main configuration properties? Maybe as a fallback, so it would not break existing themes. My use case is to read the |
I also just ran into needing this for a Hexo project. Only the theme's config is available through style.define('hexo-site-config', function(data) {
return getProperty(self.config, data.val);
}); |
Those lines seem to solve this question: doesn't it? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Use |
When i call hexo-config('root') from styl file, it return empty because theme lack of 'root' attr. So i think that if hexo-config shoud support get attr from site config file again, or how to handle the root problem?
The text was updated successfully, but these errors were encountered: