Releases: hexojs/hexo
2.0.4
2.0.3
2.0.2
2.0.1
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.json
only 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.get
is 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.
-
create
is renamed topost.create
-
process
is renamed topost.process
-
Added
post.load
-
Added
post.render
-
Warehouse is updated to 0.1
- More powerful query: Added logical operators
$or
,$and
,$nor
and$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
_id
uses random ID instead.- Removed
post.ctime
,post.mtime
. - Removed
page.ctime
,page.mtime
. - Renamed
post.full_path
topost.full_source
. - Renamed
page.full_path
topage.full_path
. - Renamed
post.original_content
topost.raw
. - Renamed
page.original_content
topage.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
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
Filters
Filter is a new type of extensions for processing uncompiled contents. The following are built-in filters.
- Auto spacing
- Backtick code block
- Excerpt
- Titlecase
For more info, check source code here.
Console Aliases
Now you can access to console more quickly.
- deploy - d
- generate - g
- new - n
- server - s
- version - v
New Tags
- Include code (#189)
Minor Changes
- Removed config:
highlight.backtick_code_block
. - Modified HTML structure of code block.
- Specify version of dependencies.
- Date i18n
Fixed
- Backtick code block escaping (#175)
- Excerpt exists even if
<!-- more -->
tag not set.