Skip to content
uiolee edited this page Apr 7, 2024 · 2 revisions

2.0.0-beta1

Key Changes

  • Multi-thread generate
  • Added support for more GFM features (#222)
  • Added link tag (#216)
  • Added OpenShift DIY cartridge deployment. (#226)
  • Added Warehouse support for Swig (#232)

New API

  • Logger
  • Model
  • file2
  • Post create
  • Swig extension (#233)

Minor Changes

  • db.json only stores original file contents.
  • New util: escape
  • New methods for YAML Front Matter: parse, stringify
  • Added original_content property to post/page model.
  • Theme config inherits root config (#235)
  • Only load plugins whose name is hexo- prefixed. (#234)

Fixed

  • Suffix archive_dir only if non-empty (#237)

2.0.0-beta2

New API

  • file2.watch

Minor changes

  • Modified match rule of is_current helper.
  • Added lodash (_) to theme variable.
  • Display theme source file render error in console directly.

Fixed

  • Deleted all categories/tags before updating posts.
  • Fixed Error: Callback was already called.
  • Code block indent

2.0.0-rc1

New

  • Open external links in new tab (#251)

Minor changes

  • Added path to page variables
  • Prints Swig render error with file name
  • 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 uncaught exceptions with log.error
  • Comments in JSDoc format

Fixed

  • Block quote tag plugin
  • Modified "More" link to pass W3C validator (#250)
  • Version console typo (#248)
  • rsync deployer plugin: fixed delete option bug (#245)
  • Replace post/page data instead of update after source file updated

2.0.0-rc2

Most of modules were refactored in 2.0.0-rc2. Some APIs were changed. After updating, you have to update the theme.

git clone git://github.com/tommy351/hexo-theme-light.git -b 2.0 themes/light

New

  • help command. Now you can use hexo help <command> to get detailed information of a command.
  • 404/500 page
  • Batch deploy (#267)

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

    • Added log.setLevel, log.setColor, log.setAlias, log.setHide, log.setDefault
    • Added log.toString, log.trim, log.toJSON.
    • Removed log.save, log.saveSync
    • Save log file in debug mode
  • 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.
  • Added support for absolute path to render.renderFile & partial helper

  • Template data changed

    • Archive layout (archive: 1): page is renamed to page.posts. (Example)
  • Get config in stylus file. For example: (#265)

    #foo
      content: hexo-config('title')
  • Changed list console export style

Fixed

  • Use path.join instead
  • Filter: external link
  • Tag: Blockquote URL truncate
  • Helper: format

2.0.0-rc3

New

  • Displays os information in hexo version
  • Dumps log file when error occurred

API Changes

  • Added processor.format method
  • Replaced file2.watch with watch
  • Refactor logger

Fixed

  • Processor didn't work on Windows
  • Log file can't be saved on Windows
  • Deployer plugins

Caution

Attention! This wiki is no longer maintained.

Please visit the official website. https://hexo.io/

Clone this wiki locally