3.2.0
Templates precompilation da241ac
Theme templates are precompiled if possible. It makes generation speed faster. The following renderers have already supported this feature.
And it's easy to implement precompilation for renderers. Just add a compile
function to the renderer. Take EJS renderer for example:
var ejs = require('ejs');
var assign = require('object-assign');
function ejsRenderer(data, locals) {
return ejs.render(data.text, assign({filename: data.path}, locals));
}
ejsRenderer.compile = function(data) {
return ejs.compile(data.text, {
filename: data.path
});
};
module.exports = ejsRenderer;
New
-
Allow specify plugin list in config #1670 f6407dc
If you set plugins list in
_config.yml
. Hexo will not detect plugin list automatically.plugins: - my-plugin
-
open_graph
helper: Add support fortwitter:image
#1681 e4a5204
Update
- Remove unneccessary refs to type attr in helper output snippets #1706 93fcdb5
- Remove commands which exist in hexo-cli f5c3b40
- Replace Swig in
post.create
with Nunjucks 35342cb
Fixed
- Fix test errors #1668 a8128cf
- Fix Swig parsing #1652 6b5fad0
- Support root path configure for img tag #1444 6bc0526
url_for
helper: Don't prepend root if url is started with#
#1708 ef6e15d- Ignore empty categories and tags in post model #1704 c6515ed
- Fix
skip_render
config doesn't work in asset generator 58971dc - Fix category when placed on root #1526 9aca27b