2.0.0
You have to update the theme after this update.
$ git clone https://github.com/tommy351/hexo-theme-light themes/light
New
-
Multi-thread generate
-
Support more GFM features (#222)
-
Added link tag (#216)
-
Added OpenShift DIY cartridge deployment. (#226)
-
Added Warehouse support for Swig (#232)
-
New filter: Open external links in new tab (#251)
-
[help] command. Now you can use hexo help to get detailed information of a command.
-
404/500 page
-
Batch deploy (#267)
-
In debug mode, logs will be saved in
debug.log.$ hexo --debug
Updated
db.jsononly stores raw data- Replaces watchr with watch
- CSS/JS helper: Prefix root URL to the path if it's not prefixed with
/or any protocol. Accept multi arguments. - Modified paginator helper
- Display OS information in
hexo version
Fixed
- Markdown indent (#243, #262)
- Block quote tag plugin
- Modified "More" link to pass W3C validator (#250)
- Version console typo (#248)
- rsync deployer plugin: fixed delete option bug (#245)
- Block quote tag URL truncate
- Format helper
Removed
- Folder as category
API Changes
-
i18n
- Added support for sprintf
- Language fallback
- Usage of
i18n.getis changed. For example:
var locale = i18n.get('zh-tw'); locale(key);
- Added
i18n.plural. You can see the test files for example.
-
Router
- Deleted
router.list - Deleted
router.clear
- Deleted
-
Processor
- Added support for Backbone-style URL params.
-
createis renamed topost.create -
processis renamed topost.process -
Added
post.load -
Added
post.render -
Warehouse is updated to 0.1
- More powerful query: Added logical operators
$or,$and,$norand$not. - Nested query.
- Population.
- Custom type.
- More query and update operators.
- Pre/post save/remove hooks.
- Mongoose-style. For example:
var doc = Post.new({title: 'Hello World'}); doc.save();
- More powerful query: Added logical operators
-
Logger
-
Model
_iduses random ID instead.- Removed
post.ctime,post.mtime. - Removed
page.ctime,page.mtime. - Renamed
post.full_pathtopost.full_source. - Renamed
page.full_pathtopage.full_path. - Renamed
post.original_contenttopost.raw. - Renamed
page.original_contenttopage.raw. - Added
category.parent.
-
util.file is replaced with util.file2
-
util.escape
-
Swig extension (#233)
-
New method for YAML front-matter:
parse,stringify -
Added
path,_(lodash) to theme variables -
Theme config inherits from global config
-
Added support for absolute path to
render.renderFile& partial helper -
Get theme/global config in stylus file (#265)
#foo content: hexo-config('title')
-
Changed list console print style