forked from hexojs/site
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
3,186 additions
and
7,140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
{ | ||
"name": "hexo", | ||
"version": "1.1.1", | ||
"version": "2.0.0-beta2", | ||
"private": true, | ||
"engines": { | ||
"node": ">0.6.0", | ||
"npm": ">1.1.0" | ||
}, | ||
"dependencies": { | ||
"hexo-generator-sitemap": "*" | ||
} | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var extend = hexo.extend, | ||
renderSync = hexo.render.renderSync; | ||
|
||
extend.tag.register('note', function(args, content){ | ||
var className = args.shift(), | ||
header = ''; | ||
|
||
if (args.length){ | ||
header += '<strong class="note-title">' + args.join(' ') + '</strong>'; | ||
} | ||
|
||
return '<blockquote class="note ' + className + '">' + header + renderSync({text: content, engine: 'markdown'}) + '</blockquote>'; | ||
}, true); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
title: Commands | ||
prev: configuration | ||
next: migration | ||
--- | ||
## init | ||
|
||
``` bash | ||
$ hexo init [folder] | ||
``` | ||
|
||
Setup a website. If `folder` isn't defined, Hexo will setup the website at the current directory. | ||
|
||
## new | ||
|
||
``` bash | ||
$ hexo new [layout] <title> | ||
``` | ||
|
||
Create a new article. If `layout` isn't defined, it'll be `default_layout` setting. If the title is more than one word, wrap it with quotation marks. | ||
|
||
## generate | ||
|
||
``` bash | ||
$ hexo generate | ||
``` | ||
|
||
Generate static files. | ||
|
||
Option | Description | ||
--- | --- | ||
`-d`<br>`--deploy` | Deploy after generate done | ||
`-w`<br>`--watch` | Watch file changes | ||
|
||
## server | ||
|
||
``` bash | ||
$ hexo server | ||
``` | ||
|
||
Start server. | ||
|
||
Option | Description | ||
--- | --- | ||
`-p`<br>`--port` | Override default port | ||
`-s`<br>`--static` | Only serve static files | ||
`-l`<br>`--log` | Enable logger. Override logger format. | ||
|
||
## deploy | ||
|
||
``` bash | ||
$ hexo deploy | ||
``` | ||
|
||
Deploy your website. | ||
|
||
Option | Description | ||
--- | --- | ||
`--setup` | Setup without deployment | ||
`--generate` | Generate before deployment | ||
|
||
## render | ||
|
||
``` bash | ||
$ hexo render <file1> [file2] ... | ||
``` | ||
|
||
Option | Description | ||
--- | --- | ||
`-o`<br>`--output` | Output destination | ||
|
||
## migrate | ||
|
||
``` bash | ||
$ hexo migrate <type> | ||
``` | ||
|
||
Migrate from other blog systems. | ||
|
||
## clean | ||
|
||
``` bash | ||
$ hexo clean | ||
``` | ||
|
||
Clean the cache file (`db.json`). | ||
|
||
## list | ||
|
||
``` bash | ||
$ hexo list <type> | ||
``` | ||
|
||
List all categories/pages/posts/routes/tags. | ||
|
||
## version | ||
|
||
``` bash | ||
$ hexo version | ||
``` | ||
|
||
Display version information. | ||
|
||
## Others | ||
|
||
### Safe mode | ||
|
||
``` bash | ||
$ hexo --safe | ||
``` | ||
|
||
Plugins and scripts won't be loaded in safe mode. You can try this when you encounter some problems after installing a new plugin. | ||
|
||
### Debug mode | ||
|
||
``` bash | ||
$ hexo --debug | ||
``` | ||
|
||
Display verbose messages in console directly. When you encounter some problems, run Hexo again in the debug mode and submit the messages on GitHub. |
Oops, something went wrong.