3.2.2

@tommy351 tommy351 released this Jun 28, 2016 · 26 commits to master since this release

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

Downloads

3.2.1

@tommy351 tommy351 released this Jun 28, 2016 · 33 commits to master since this release

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

Downloads

3.2.0

@tommy351 tommy351 released this Feb 28, 2016 · 50 commits to master since this release

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

Downloads

3.2.0-beta.2

@tommy351 tommy351 released this Dec 6, 2015 · 97 commits to master since this 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

Downloads

3.2.0-beta.1

@tommy351 tommy351 released this Nov 19, 2015 · 122 commits to master since this 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

Downloads

3.1.1

@tommy351 tommy351 released this May 20, 2015 · 181 commits to master since this release

New

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

Downloads

3.1.0

@tommy351 tommy351 released this May 20, 2015 · 183 commits to master since this release

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

Downloads

3.0.1

@tommy351 tommy351 released this Apr 6, 2015 · 246 commits to master since this release

New

Fixed

Downloads

3.0.0

@tommy351 tommy351 released this Mar 5, 2015 · 274 commits to master since this release

New

  • Add relative option to url_for helper. 4667533

Update

  • Cast theme setting to a string. 9dbf413
  • Fixed relative_url helper. 348cdf8
  • Remove trailing line breaks in css, js helper. 6149999
  • Fixed wrong url in Hexo._generate. 271a6db
  • Use timezone setting in page/post processor. 65572df

Downloads

3.0.0-rc.4

@tommy351 tommy351 released this Feb 14, 2015 · 283 commits to master since this release

New

Update

  • Add alias for strip_html, word_wrap helpers. hexojs/hexo-util#1
  • Fixed new assets are flag as not modified. #1041
  • Default to using ISO-8601 date format. #1044
  • generate: write file if the target does not exist.
  • Use async API in include_code tag.
  • Add timezone support to date, time, time_tag, full_date helper.
  • Add locale, timezone support to list_archives helper.

Downloads