New
hexo.render
: AddtoString
option.- Add
hexo.execFilter
as an alias ofhexo.extend.filter.exec
. - Add
hexo.execFilterSync
as an alias ofhexo.extend.filter.execSync
. - Add
before_generate
filters: Run before generation started - Add
after_generate
filters`: Run after generation done
Updated
hexo.route
: Stringify JSON object in stream.hexo.route
: Return streams in object mode.- Set
layou
tofalse
if the output extension is not htm/html by default. - Fixed
cli/init.js
throws nothing even if the command is success. hexo.post.render
: Fixed Swig blocks with arguments are not processed.- Improve i18n template_locals filter: Detect whether or not a language is loaded and set
page.canonical_path
for canonical path of a page. - Add
modified
field to Cache model. Renamechecksum
toshasum
. - Update the default dependencies:
hexo-renderer-marked
:^0.2.0
,hexo-renderer-stylus
:^0.2.0
. - Move post rendering process to
before_generate
filters. - Render Swig tags in
hexo.post.render
. - Modified the output of
hexo list post/page
command. - Parse special date format in source files and fallback to file stats if the date is invalid.
- Hide file loaded message in the console. (Unless you run in debug mode.)