github hexojs/hexo 2.4.0

latest releases: v7.2.0, v7.1.1, v7.1.0...
10 years ago

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
  • 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. Now hexo.util.titlecase is an alias of hexo.util.inflector.titleize.
  • Modify hexo.Model API.
  • Add photos and link properties to post model.
  • Swig extend is removed.

Fixed

  • Fix hexo.source.process ignore delete event
  • Fix generate watch bug #400
  • Fix list_archives helper
  • Fix github/heroku deployer
  • Fix highlight can't be disabled #398

Don't miss a new hexo release

NewReleases is sending notifications on new releases.