Open fish-uncle opened 4 years ago
Similar to hexo-renderer-stylus which renders hexo-theme-landscape.
'layout/source/less' should have one main 'style.less' which may reference to other Less files ('_variables.less, notice the underscore). 'style.less' will be rendered to
http://yoursite.com/less/style.cssand embeds it in your theme using
<%- css('/less/style.css') %>`, assuming you're using EJS for your theme.
btw, the compress
option has been deprecated. suggest to use hexo-clean-css to minify css.
Apparently this is actually in <theme>/source/less/*.less
(vs incorrectly: ).<theme>/layout/source/less/*.less
This should probably be documented up front and center in the README as it's a slightly critical detail that should not take an hour to hunt down or depend on internal knowledge of how some other thing does things.
How to reference on the page?