jaredly / hexo-admin

An Admin Interface for Hexo
http://jaredly.github.io/hexo-admin/
1.76k stars 298 forks source link

Swapping theme from UI #130

Open json2d opened 7 years ago

json2d commented 7 years ago

It would be great to be able to quickly swap between themes you have installed in your hexo instance. I think i would add a lot of value for users.

Would this be pretty straight forward to implement with your current framework?

Where in the source would be a good place to start?

jaredly commented 7 years ago

Do you mean that you'd like to be able to change the theme (as specified in _config.yaml) from hexo-admin? We don't currently have any code that modifies _config.yaml, and I'm not sure how I would go about telling the main hexo process to start using a new theme... I'm afraid it won't be straightforward to implement

json2d commented 7 years ago

@jaredly thanks for the info. You're right, we could've used hexo.call('set-theme'), if only this command existed in the hexo core.