Skip to content

Commit

Permalink
Update theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Aug 24, 2013
1 parent d3731aa commit 71231be
Show file tree
Hide file tree
Showing 119 changed files with 3,186 additions and 7,140 deletions.
4 changes: 1 addition & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ disqus_shortname:

# Extensions
plugins:
- hexo-generator-sitemap
theme: hexo
theme: hexo2
exclude_generator:
- category
- tag
Expand All @@ -57,7 +56,6 @@ auto_spacing: false
titlecase: false
highlight:
enable: true
backtick_code_block: true
line_number: false
tab_replace: ' '

Expand Down
6 changes: 2 additions & 4 deletions package.json
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": {}
}
13 changes: 13 additions & 0 deletions scripts/note.js
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);
76 changes: 0 additions & 76 deletions source/docs/cli.md

This file was deleted.

121 changes: 0 additions & 121 deletions source/docs/collection.md

This file was deleted.

119 changes: 119 additions & 0 deletions source/docs/commands.md
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.
Loading

0 comments on commit 71231be

Please sign in to comment.