Skip to content

Releases: hexojs/hexo

3.3.6

17 May 19:00
Compare
Choose a tag to compare

UNPUBLISHED FROM NPM DUE TO CRITICAL ISSUE, PLEASE GET 3.3.7 INSTEAD

New Features

  • Allow plugins to be stored as devDependencies too. (#2558)

Fixes

  • Fix parsing error about <code> tag (Issue #2563) (#2568)

3.3.5

28 Apr 17:42
Compare
Choose a tag to compare

Fixes

  • Revert "#2262 Post Sort Fix" Changes (#2526)
  • Allow open_graph generates meta tag "keywords" by page.keywords, page.tags or config.keywords (#2535)
  • Fix multiple config issue #2518 (#2520)
  • Fix the issue "#2538 excerpt and more cam differ from content" (#2539)
  • Fix error when tag.render <code> (#2461)
  • Fix windows line end (version 3.3.1)

Miscellaneous

  • Convert test js to es6 (#2488)

3.3.0

03 Apr 18:59
Compare
Choose a tag to compare

New features:

  • Access data files from source folder #1969
  • Support for multiple config files (#2210) #2211
  • Support for npm scoped packages as plugins #2022

Fixes:

  • Fix the wrong share link when the site is in subdirectory #1912
  • Remove results attribute in search form #2001
  • Add support for suffix in list_categorise & list_tags, fix #2021
  • Increased unit test coverage #2205
  • Fix the jsfiddle tag plugin warning under https #2086
  • Fix not generated #2278
  • Post sort fix #2262
  • Fix css and js helper to prevent adding .css/.js when the path already has parameter #2274
  • Fix issue og:url incorrect when site is put under subdirectory #942 #2348
  • Replace new lines by spaces in description #2354

Miscellaneous:

  • Add ISSUE_TEMPLATE #1779
  • Add .editorconfig to keep fit in different editor
  • Update scaffold.js to use the latest style of yaml
  • Test cases updated
  • Appveyor: add node.js 7 testing environment #2302

3.2.2

28 Jun 21:42
Compare
Choose a tag to compare

Fixed

  • Remove url_for helper reference in Post.permalink getter and img tag #1680 #1949 fc4ca63 b530591
  • Don't add /(?:og:|twitter:)?description/ meta tags if there is no description (invalid HTML) #1976 a90fda7
  • Remove unnecessary npm install in readme #1947 34eae96

3.2.1

28 Jun 20:05
Compare
Choose a tag to compare

New

  • Add a new option max_depth to the helper toc #1809 569856e
  • Add tests for og:updated_time in open_graph helper, and add ability to turn it off #1973 a293755

Fixed

  • Execute 'after_render' filter when rendering with precompiled renderer #1794 81315c8
  • codeblock tag : escape HTML code otherwise it will be interpreted by the browser #1811 ddea26a
  • Addresses "TypeError: Cannot read property 'compile' of undefined" #1910 3b8447e
  • Fix path error in Node.js 6 f4bad86

3.2.0

28 Feb 04:39
Compare
Choose a tag to compare

Templates precompilation da241ac

Theme templates are precompiled if possible. It makes generation speed faster. The following renderers have already supported this feature.

And it's easy to implement precompilation for renderers. Just add a compile function to the renderer. Take EJS renderer for example:

var ejs = require('ejs');
var assign = require('object-assign');

function ejsRenderer(data, locals) {
  return ejs.render(data.text, assign({filename: data.path}, locals));
}

ejsRenderer.compile = function(data) {
  return ejs.compile(data.text, {
    filename: data.path
  });
};

module.exports = ejsRenderer;

New

  • Allow specify plugin list in config #1670 f6407dc

    If you set plugins list in _config.yml. Hexo will not detect plugin list automatically.

    plugins:
      - my-plugin
  • open_graph helper: Add support for twitter:image #1681 e4a5204

  • open_graph helper: Add support for keywords #1683 a0888fa

  • codeblock tag: Add mark option #1766 60cc43c

Update

  • Remove unneccessary refs to type attr in helper output snippets #1706 93fcdb5
  • Remove commands which exist in hexo-cli f5c3b40
  • Replace Swig in post.create with Nunjucks 35342cb

Fixed

3.2.0-beta.2

06 Dec 13:40
Compare
Choose a tag to compare
3.2.0-beta.2 Pre-release
Pre-release

Speed improvement

Cached rendered contents 9ba40f4

Rendered contents are cached in the warehouse. This saves a lot of time and made hot processing (2nd-time processing) much faster.

Lazy load language files of highlight.js hexojs/hexo-util@7f6469e

highlight.js is slow. Especially when it try to detect the language. Lazy load language files make processing faster and don't have to load bunch of unused language files. However there're some limitations:

  • Auto detect must be disabled.
  • You have to specify language in code block.

What can we do next?

Generation speed is slow so far. I'm still finding a way to solve it.

Include/exclude source files 8cca1f9

You can include/exclude specified source files in _config.yml.

include:
  - .htaccess

exclude:
  - tmp/**/*

Other changes

3.2.0-beta.1

19 Nov 08:50
Compare
Choose a tag to compare
3.2.0-beta.1 Pre-release
Pre-release

New

Update

  • Update hexo-util to 0.2.1 4ba5697
  • Replace SHA1 with xxHash for faster hash. It's optional if your computer can't install xxHash 2576f8a
  • Lazy load file hash 06c33e0
    • Load file hash only if the file is new or the modified time is changed
    • Don't render files twice in hexo generate command. Try to calculate file hash from generated files.
  • Update warehouse to 2.0.0 e9327a4
    • Replace queue with r/w lock
  • Detect the current category or tag in is_category/is_tag helper. #1278 8735bfe

Fixed

3.1.1

20 May 11:18
Compare
Choose a tag to compare

New

  • Add option to disable highlight auto-detect. #1227 eaa0ed5

3.1.0

20 May 11:15
Compare
Choose a tag to compare

You have to update hexo-generator-index to 0.1.2 in order to support the new is_home helper.

$ npm install hexo-generator-index@0.1.2 --save

New

  • Add data.onRenderEnd field to render() and renderSync(). #1182 c132017
  • Use -f or --force when hexo generate to force regeneration. #1233 5d5092c
  • list_categories: option to add a css-class that there are child-categories #1246 57596a9
  • Add :name to the list of permalink filters. #1247 63bacf2
  • Add option to indicate current category with class name current #1248 eff1429
  • Add new permalink param: post_title. #1258 d531c10
  • Add separator option to tag cloud helper. #1252 a3c624e

Fixed

  • Fix search to use sitesearch param instead of two q params. #1186 2ad148c
  • Fix the problem that occurs when every tag has the same number of posts. #1202 56bfc43
  • More strictly check for category duplicaton and tag duplication. #1204 64fdc3a
  • Fix infinite loop in hexo help command. #1209 4fa9d91
  • Image should have alt, title is optional. #1226 7cc20e4
  • Fix backtick_code_block for ignore tab character. #1229 1a16481
  • Preserve non-null data in drafts. #1139 245f4af
  • Fix for relative url ..//. #1251 f4270c4
  • relative_url helper: replace trailing slash with index.html. 03077e7
  • Simplify is_home and is_post helper. Add is_page helper. 62f521b
  • Fix is_current throws error when no path is given. fe41b43
  • Make og:image URL always a full URL. a567c48