Skip to content
SkyArrow edited this page Jun 3, 2013 · 77 revisions

1.2.0 (2013-06-01)

Filters

Filter is a new type of extension for processing uncompiled contents.

  • Auto spacing
  • Backtick code block
  • Excerpt
  • Titlecase

Documentation will be released soon. 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

Tag

Minor changes

  • Removed highlight.backtick_code_block option.
  • Modified HTML structure of code block.
  • Specify version of dependencies.

Fixes

  • 1.2.0:

    • Backtick code block escaping #175
    • Excerpt bug
  • 1.2.1:

    • Fixed server redirection
  • 1.2.2:

    • Fixed render.renderFile layout always use layout
    • Fixed css & js helper #193 #194
    • Fixed server error when there's a blank file
    • Fixed processor remove blank line when escaping
  • 1.2.3:

    • Fixed duplicated category #195

1.1.0 (2013-04-04)

New helpers

  • Conditional: is_current, is_home, is_post, is_archive, is_year, is_month, is_category, is_tag
  • Date: date, date_xml, time, full_date, time_tag, moment
  • Form: search_form
  • Format: word_wrap, truncate, truncate_words
  • Link: link_to, mail_to
  • List: list_categories, list_tags, list_archives
  • Number: number_format

Render console

Usage:

hexo render <input1> [input2] ... -o/--output [output]

Minor changes

  • Generator: Simplify render process
  • CSS/JS helper: Add / and extension automatically
  • Pullquote tag: Markdown render
  • Render API: Added isRenderable, isRenderableSync, getOutput method
  • Server: Enable error handler in debug mode
  • Update package.json when initialization
  • Ignore empty category/tag when generating

Fixes

  • 1.1.0:
    • Fixed partial helper bug occurred when file is empty or file not exists
    • Fixed server redirection bug
  • 1.1.3:
    • Fixed layout: false not working #158
    • Added iframe tag plugin, updated jsfiddle tag plugin #162
  • 1.1.4:
    • Fixed special characters in URI #187

1.0.0 (2013-03-02)

To build database, first generating may be slower than before. Once the database is built, generating will be much faster.

Migrating from 0.5.x

  • Update the theme

    cd themes/light
    git pull 

    or

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

    or you can follow this commit to modify your theme.

  • Update the plugins

    npm update

Key changes

Removed

  • Old cache module
  • Removed process from hexo namespace
  • Render console

Patches

  • 1.0.1:
    • Fixed wrong post url #100
  • 1.0.2:
    • Simplify model
    • Fixed space escape
    • Fixed duplicated categories #101
    • Fixed tag cloud helper #102
    • Added category/tag map back
  • 1.0.4:
    • Simplify helper API
    • Fixed render cache
    • Process: skip files that don't exist
  • 1.0.5:
    • Ignore files whose name ended with "~" #109
    • Fixed category_dir not working #103
    • Fixed empty post bug #111
    • Fixed tag bug after post updating #110
  • 1.0.6:
    • Fixed multi line content not escaped in markdown #112
    • Removed UTF BOM #104
  • 1.0.7:
    • Fixed tag cloud #117
    • Fixed #103
    • Fixed server redirection
    • Fixed #105
  • 1.0.8:
    • Added HTML renderer #123
    • CSS / JS helper support for array
    • Added Markdown helper
    • Fixed #126
  • 1.0.9:
    • CoffeeScript highlight alias #131
    • Added id in post config #130

0.5.0 (2013-01-13)

Article

  • Scaffolds: Template of new articles

  • Merge newPost & newPage events into one event new

  • Merge new_post & new_page commands into one command new

    hexo new [layout] <title>
    

    e.g.

    hexo new "New Post"
    hexo new page "New Page"
    hexo new draft "New Draft"
  • New setting: default_layout (post as default)

  • New setting: highlight.tab_replace

    e.g. Replace tabs in code block with two spaces

    highlight:
      tab_replace: '  '
  • Escape reserved characters in filename

  • Rename automatically when the file already exists

  • Category settings in post

    # Split by slash
    categories: foo/bar
    
    # Or use an array
    categories: [foo, bar]
    categories:
    - foo
    - bar
  • Modified default format of articles #47

    Post, Draft: post as default layout. Comment enabled by default

    ---
    title:
    date:
    tags:
    ---

    Page: page as default layout. Commment enabled by default

    ---
    title:
    date:
    ---
  • Watch file changes (Testing)

    hexo generate -w/--watch
    
  • 0.5.4: Read date from filename when new_post_name set and date setting in file undefined. #60

  • 0.5.4: New setting default_category replaces the old category_dir and new category_dir will be category archive link #62

  • 0.5.5: Escape special characters in category, tag and post file name #66

  • 0.5.5: New settings: category_map, tag_map

    Now you can set the slug for categories and tags. For example:

    category_map:
      Apple: apple
      Node.js: nodejs
  • 0.5.5: Ignore the first --- in YAML front matter

    title: Post Title
    date: 2013-01-18
    ---
    

Server

  • Added -p & --port option: Port setting

    hexo server -p 1234
    hexo preview -p 1234
    
  • Redirect to root automatically

    e.g. root setting is /child/

    http://localhost:4000/ -> http://localhost:4000/child/ (302 redirect)
    
  • Events renamed

    previewOn -> preview
    serverOn -> server
    

Deploy

  • Delete setup_deploy command.

  • Setup automatically before deployment. You can add --setup option to setup without deployment

    hexo deploy --setup
    
  • Added --generate option: Generate before deploy

    hexo deploy --generate
    hexo generate -d/--deploy
    

CLI

  • Hide some commands when the folder isn't setup
  • Delete -v, --version, ver commands
  • Colorize CLI with colors
  • Parse command with optimist
  • 0.5.4: Display more detailed version information
  • 0.5.4: Display process when generating

Fix

  • Duplicated <pre><code> in backtick code block #49
  • Decrease synchronized I/O to 512 #45
  • 0.5.1: Initializing error #54
  • 0.5.2: Watching error #59
  • 0.5.4: Decrease synchronized I/O to 100. You can increase it by editing max_open_file setting.
  • 0.5.7: YAML front matter parsing bug #69
  • 0.5.8: Generating process display bug on Windows
  • 0.5.8: Delete some files accidentally when generating #65
  • 0.5.9: comments option in posts doesn't work #76
  • 0.5.10: Numeric title #80

Miscellaneous

  • Added some tests
  • Added Route.clear(): Clear all routes
  • Added hexo.cache: Load/Save cache in .cache
  • Install theme with local files instead of git when initializing
  • Replace all tabs with spaces before rendering YAML
  • More detailed error infomation #40
  • 0.5.2: Preview: Watching enabled by default
  • 0.5.4: Added process to hexo namespace
  • 0.5.5: Remove setting: plugins. All plugins in node_modules will be loaded.

0.4.0 (2013-01-06)

  • Events

  • Filters

  • Scripts

  • New helpers: render, partial, gravatar

  • New renderer: Discount

  • Debug Mode

    hexo --debug
    
  • Added highlight settings

    highlight:
      enable: true
      backtick_code_block: true
      line_number: true
    
  • Added permalink and path properties in every page

  • Added base properties in paginator class

  • Make some variables readonly

  • Escape contents in <notextile> tags

  • Clear old static files while generating new static files

  • Fixed rsync deployer #24

  • Fixed bugs of backtick code block

0.4.1

  • Fixed backtick code block

0.4.2

  • Fixed port support of rsync deployer #24

0.4.3

  • Create public folder when initializing

  • Don't clear public folder if not exist

  • New console: render

    hexo render <source> <destination>
    

0.4.4

  • Don't add permalink and path properties in every page temporarily

0.4.5

  • Fixed ignore theme installation

0.3.2 (2012-12-27)

  • Queue generating (Max 1024 files at the same time) #17
  • Image Tag: Detect URL started with / #18
  • Fixed #16, #20
  • Added new_post_name setting for file name of the new post #19
  • Transform title into lower case and transform spaces in it into dash. (hexo new_post Test Postsource/_posts/test-post.md)

###new_post_name

  • :year - Published year of the post (4-digit)
  • :month - Published month of the post (2-digit)
  • :day - Published date of the post (2-digit)
  • :title - Post name

Default is :title.md. Octopress style is :year-:month-:day-:title.md.

0.3.0 (2012-12-20)

  • New router system

  • Added preview for seeing your site without generating static files (can't watch file changes for now)

    hexo preview
    
  • Added routes for displaying all routes of the site

    hexo routes
    
  • Replace EOL with \n when reading files to avoid parsing error on Windows #14

  • Use graceful-fs to avoid EMFILE error #15

hexo-generator-feed & hexo-generator-sitemap also updated for the new router system.

0.2.1 (2012-12-16)

  • Use yamljs to parse YAML #13
  • Only load plugins in initialized folders

0.2.0 (2012-12-16)

  • Added img tag ported from Octopress #8
  • Added rsync deployer (not tested yet, report your issue here) #9
  • Added i18n support
  • Use js-yaml to parse YAML
  • Optimize generating speed
  • Fixed bugs

Light & Phase also updated for i18n.

0.1.11 (2012-12-07)

  • Fixed deployment didn't commit deleted files
  • Fixed files in source folder didn't copied to public folder

0.1.9 (2012-12-07)

  • Added -t, --theme for ignoring theme installation when generating.

    hexo generate -t
    hexo generate --theme
    
  • Optimize generating speed

  • Fixed "permalink" parameter of articles

New theme: Phase

0.1.8 (2012-12-04)

  • Use Stream to copy files - faster generating speed!

  • Not to load plugins twice

  • Added Safe Mode to ignore plugins. Added --safe in command like this.

    hexo generate --safe
    
  • I found that NPM won't update your plugins unless you add them into package.json. So please install the plugin with --save and NPM will add it to package.json automatically.

    npm install <plugin-name> --save
    

0.1.7 (2012-12-02)

  • Expose render function
  • Added env variable to global variable
  • API updated: #7
    • page.source - Path of source file of post
    • page.path - Relative path of post
    • page.permalink - Permalink of post
  • Fixed layout of command list
  • Load config & plugins before console start
  • Transform command into lower case - you can enter Config, CONFIG or config in console

Please execute the following code to update plugins and themes after update:

npm update
cd themes/light
git pull

0.1.6 (2012-11-18)

  • Update Hexo and Light theme to fix link/photo layout #6
  • Layout fallback

0.1.5 (2012-11-15)

  • Added Migrator plugin
  • Ignore global configuration when users set permalink, updated in articles #5
  • Load plugins when initializing

0.1.4 (2012-11-12)

  • Added Backtick Code Block based on Octopress
  • Only add line number when using code block plugin or backtick code block
  • Added "plain" to escape highlight.
  • Smarter permalink configuration
    • Add / to the end of permalink automatically
    • .htm or .html are now available for permalink
    • Use default configuration when undefined
  • Fixed Gist file #3

0.1.3 (2012-11-05)

  • Fixed error occurred when initializing #1