Releases: hexojs/hexo
Releases · hexojs/hexo
2.4.1
2.4.0
Highlight
New default theme: Landscape
Landscape is a brand new default theme for Hexo. It uses lots of new features introduced in Hexo 2.x so it requires Hexo 2.4.
$ git clone https://github.com/tommy351/hexo-theme-landscape.git themes/landscape
Theme unit test
It's recommended that a new theme should pass the theme unit test before released. For more info: hexo-theme-unit-test
API docs
Hexo eventually has a API documentations. It still needs to be tuned. But I promise it'll be released in January.
Plugins are updated
hexo-generator-feed and hexo-generator-sitemap are both updated and become more customizable.
New
- Theme script #364: Load scripts in theme folder
- Add
--silent
option - hexo new
- Add option
-p, --path
: Customize the path of the post - Add option
-s, --slug
: Customize the URL of the post
- Add option
- Theme configuration watch
- Expose theme configuration to stylus files
- Add
open_graph
helper
Update
- Replace mikeal/watch with paulmillr/chokidar for better source watch
- If a post has link but doesn't have a title, use link as title.
- Modify class name of
list_categories
helper. - Modify layout order of post/page layout.
- Post: User selected -> post -> page -> index
- Page: User selected -> page -> post -> index
- Update dependencies
API Changes
- New API: hexo.theme, hexo.source, hexo.scaffold
- API moved:
hexo.process
->hexo.source.process
- Add
hexo.util.file2.watch
for file watching - Add
hexo.util.format
- Add
hexo.util.inflector
. Nowhexo.util.titlecase
is an alias ofhexo.util.inflector.titleize
. - Modify
hexo.Model
API. - Add
photos
andlink
properties to post model. - Swig extend is removed.
Fixed
2.3.0
New
Better draft management (#331, #340)
- Add
draft
scaffold - Not set the date for drafts
- Add
-d, --drafts
option tohexo server
: In this mode, drafts will be serve as normal posts. You can also change the settingrender_drafts
in_config.yml
. - Add
publish
command: Move your draft from_drafts
folder to_posts
folder and set the date for posts.
Updated
- Theme Light
- Facebook social comment (hexojs/hexo-theme-light#33)
- Spanish translation (hexojs/hexo-theme-light#35)
- Add
i_month
,i_day
support fornew_post_name
setting
Fixed
- Better exception handle when a console plugin is only for the initialized environment