Sukka
Sukka
I have noticed `hexo-renderer-marked` has an option `prependRoot`. `root` will be prepended after this option is enabled. I am wondered if we could prepend post path as well. https://github.com/hexojs/hexo-renderer-marked#Options
Drops `resolve` from dependency in Hexo 7.0.0, see https://github.com/hexojs/hexo/pull/4863
FYI: Currently there are more than 50 packages on npm has `hexo-theme-` prefixed: https://www.npmjs.com/search?q=hexo-theme (Others are `eslint-config-theme-next` or `-theme-hexo` suffixed)
> you just need to determine whether a `layout` directory exists - it is a pity to deprecate some modules for this reason. Another idea is only to exclude `hexo-theme-[config.theme]`...
@tomap Yeah, `theme_config` is supposed to be included in `Locals.prototype.theme`. https://github.com/hexojs/hexo/blob/5fba0a08bf1e7eaa81bf9156f6bd1e83b1e500a0/lib/hexo/index.js#L360 @jiangtj It would be more complex for a user to configure it. > This brings me to another idea....
https://github.com/hexojs/hexo/issues/2471#issuecomment-557870309 Related progress.
@tomap We could start by excluding `hexo-theme-${config.theme}` from being loading as a plugin.
https://github.com/hexojs/hexo/pull/4120#issuecomment-619574347
@stevenjoezhang https://github.com/hexojs/hexo/pull/4120#issuecomment-619574347 > Is it possible to merge config.theme_config into theme.config after ctx.theme loads? The `ctx.theme.config` is loaded through `this.theme.process()`: https://github.com/hexojs/hexo/blob/edef5c2a9c1217aaab02f64397e7e94d2f98e4fa/lib/hexo/index.js#L306-L309 See: https://github.com/hexojs/hexo/blob/master/lib/theme/index.js , https://github.com/hexojs/hexo/blob/edef5c2a9c1217aaab02f64397e7e94d2f98e4fa/lib/theme/processors/config.js#L11-L14 That's right before `this._generate()` (Before...
@stevenjoezhang > This will cause Hexo to load all themes except landscape as plugins. Might be related with https://github.com/hexojs/hexo/pull/4386.