Skip to content

Releases: hexojs/hexo

2.0.4

27 Aug 14:54
Compare
Choose a tag to compare

Fixed

  • Tag cloud helper (#286)
  • clean console didn't callback

2.0.3

27 Aug 13:51
Compare
Choose a tag to compare

Fixed

  • Bring back branch setting of GitHub deployment. (#284)

2.0.2

27 Aug 03:45
Compare
Choose a tag to compare

Fixed

  • Create a new post with the specified layout. (#281)

2.0.1

26 Aug 08:51
Compare
Choose a tag to compare

Fixed

  • Moment can't find the matching language file (#278)
  • Log file save failed (#278)
  • util.pool broken in Node.js 0.8 and below
  • Case sensitive on GitHub page deployment (#279)

2.0.0

26 Aug 01:24
Compare
Choose a tag to compare

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

1.2.4

03 Jul 06:49
Compare
Choose a tag to compare

Fixed

  • Typo in server console (#202)
  • File watching of generate console issue on win32 platform (#203)
  • Backtick code block notation (#213)

1.2.3

03 Jul 07:00
Compare
Choose a tag to compare

Fixed

  • Duplicated category (#195)

1.2.2

03 Jul 07:01
Compare
Choose a tag to compare

Fixed

  • render.renderFile layout always use layout
  • css & js helper (#193, #194)
  • Server error when processing a blank file
  • Processor remove blank line when escaping

1.2.1

03 Jul 07:01
Compare
Choose a tag to compare

Fixed

  • Server redirection

1.2.0

04 Jul 03:18
Compare
Choose a tag to compare

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.