Releases: hexojs/hexo
3.3.6
3.3.5
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
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:
3.2.2
3.2.1
3.2.0
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 fortwitter:image
#1681 e4a5204
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
- Fix test errors #1668 a8128cf
- Fix Swig parsing #1652 6b5fad0
- Support root path configure for img tag #1444 6bc0526
url_for
helper: Don't prepend root if url is started with#
#1708 ef6e15d- Ignore empty categories and tags in post model #1704 c6515ed
- Fix
skip_render
config doesn't work in asset generator 58971dc - Fix category when placed on root #1526 9aca27b
3.2.0-beta.2
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
- Add
first_line
option to code block #1607 2af6676 - Fix special tag names #1599 7e1d351
- Set
scrolling="no"
to make iframe responsive #1305 702d35d - Fix arguments with space analyze incorrectly in tag plugin #1581 7433af3
- Ignore
node_modules
folder in theme folder #1316 4eaec8a - Merge config instead of extend 61941e7
3.2.0-beta.1
New
- Add
relative_date
helper #1350 7278da6 - Add
log
helper #1391 b1faffd - Add
category
tohexo list
command #1480 24b4c65 - Override
line_number
,highlight
setting at the code block level #1538 34f8cb3 - Add abbrev. support to
hexo list
command 40ccecb
Update
- Update hexo-util to 0.2.1 4ba5697
- Disable auto detect by default
- Fix highlight broken for multi-line strings hexojs/hexo-util#4
- Fix short strings handling in truncate function hexojs/hexo-util#5
- 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
- Fix
url_for
helper does not allow specifying the root of the site if the site is in a subfolder. #1105 #1345 5c46552 - Prepend root path in
url_for
helper #1105 #1406 14d2b9b - Modify
tag_id
tocategory_id
in post model #1512 b4172d6 - Fix
excerpt
filter #1451 #1519 85fccb6 - Fix default value of date attribute in post processor #1523 d64b907
- Fix
relative_url
helper #1524 c3ba3f6 - Correct tag trimming #1539 cd0d987
- Use HTTPS in
gravatar
helper #1561 1a84bbe - Fix HTML issue with RSS/Atom feeds: rel="alternate" #1572 f7b204d
3.1.1
3.1.0
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 torender()
andrenderSync()
. #1182 c132017 - Use
-f
or--force
whenhexo 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 twoq
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
andis_post
helper. Addis_page
helper. 62f521b - Fix is_current throws error when no path is given. fe41b43
- Make og:image URL always a full URL. a567c48