-
Notifications
You must be signed in to change notification settings - Fork 0
Changelog
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.
Now you can access to console more quickly.
- deploy - d
- generate - g
- new - n
- server - s
- version - v
- Include code #189
- Removed
highlight.backtick_code_blockoption. - Modified HTML structure of code block.
- Specify version of dependencies.
-
1.2.0:
- Backtick code block escaping #175
- Excerpt bug
-
1.2.1:
- Fixed server redirection
-
1.2.2:
-
1.2.3:
- Fixed duplicated category #195
- 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
Usage:
hexo render <input1> [input2] ... -o/--output [output]
- 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
-
1.1.0:
- Fixed partial helper bug occurred when file is empty or file not exists
- Fixed server redirection bug
- 1.1.3:
-
1.1.4:
- Fixed special characters in URI #187
To build database, first generating may be slower than before. Once the database is built, generating will be much faster.
-
Update the theme
cd themes/light git pullor
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
- New process API
- New render API
- Cache with Warehouse database
- More stable file watching with watchr
- Preview console is merged with server console (Detail)
- Old cache module
- Removed
processfrom hexo namespace - Render console
-
1.0.1:
- Fixed wrong post url #100
- 1.0.2:
-
1.0.4:
- Simplify helper API
- Fixed render cache
- Process: skip files that don't exist
- 1.0.5:
- 1.0.6:
- 1.0.7:
- 1.0.8:
- 1.0.9:
-
Scaffolds: Template of new articles
-
Merge
newPost&newPageevents into one eventnew -
Merge
new_post&new_pagecommands into one commandnewhexo new [layout] <title>e.g.
hexo new "New Post" hexo new page "New Page" hexo new draft "New Draft"
-
New setting: default_layout (
postas 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:
postas default layout. Comment enabled by default--- title: date: tags: ---
Page:
pageas 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_nameset anddatesetting in file undefined. #60 -
0.5.4: New setting
default_categoryreplaces the oldcategory_dirand newcategory_dirwill 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 mattertitle: Post Title date: 2013-01-18 ---
-
Added
-p&--portoption: Port settinghexo 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
-
Delete
setup_deploycommand. -
Setup automatically before deployment. You can add
--setupoption to setup without deploymenthexo deploy --setup -
Added
--generateoption: Generate before deployhexo deploy --generate hexo generate -d/--deploy
- Hide some commands when the folder isn't setup
- Delete
-v,--version,vercommands - Colorize CLI with colors
- Parse command with optimist
- 0.5.4: Display more detailed version information
- 0.5.4: Display process when generating
- 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_filesetting. - 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:
commentsoption in posts doesn't work #76 - 0.5.10: Numeric title #80
- 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
processto hexo namespace -
0.5.5: Remove setting: plugins. All plugins in
node_moduleswill be loaded.
-
Filters
-
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 -
Addedpermalinkandpathproperties in every page -
Added
baseproperties 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
- Fixed backtick code block
- Fixed port support of rsync deployer #24
-
Create public folder when initializing
-
Don't clear public folder if not exist
-
New console: render
hexo render <source> <destination>
- Don't add
permalinkandpathproperties in every page temporarily
- Fixed ignore theme installation
- Queue generating (Max 1024 files at the same time) #17
- Image Tag: Detect URL started with
/#18 - Fixed #16, #20
- Added
new_post_namesetting for file name of the new post #19 - Transform title into lower case and transform spaces in it into dash. (
hexo new_post Test Post→source/_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.
-
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
\nwhen 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.
- 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.
- Fixed deployment didn't commit deleted files
- Fixed files in source folder didn't copied to public folder
-
Added
-t,--themefor ignoring theme installation when generating.hexo generate -t hexo generate --theme -
Optimize generating speed
-
Fixed "permalink" parameter of articles
New theme: Phase
-
Use Stream to copy files - faster generating speed!
-
Not to load plugins twice
-
Added Safe Mode to ignore plugins. Added
--safein 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--saveand NPM will add it topackage.jsonautomatically.npm install <plugin-name> --save
- Expose
renderfunction - Added
envvariable 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,CONFIGorconfigin console
Please execute the following code to update plugins and themes after update:
npm update
cd themes/light
git pull
- Update Hexo and Light theme to fix link/photo layout #6
- Layout fallback
- Added Migrator plugin
- Ignore global configuration when users set
permalink,updatedin articles #5 - Load plugins when initializing
- 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 -
.htmor.htmlare now available for permalink - Use default configuration when undefined
- Add
- Fixed Gist file #3
- Fixed error occurred when initializing #1