Skip to content

2.0.0

Choose a tag to compare

@tommy351 tommy351 released this 26 Aug 01:24

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
  • Processor

    • Added support for Backbone-style URL params.
  • create is renamed to post.create

  • process is renamed to post.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();
  • Logger

  • Model

    • _id uses random ID instead.
    • Removed post.ctime, post.mtime.
    • Removed page.ctime, page.mtime.
    • Renamed post.full_path to post.full_source.
    • Renamed page.full_path to page.full_path.
    • Renamed post.original_content to post.raw.
    • Renamed page.original_content to page.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