title | date | author | author_link | tags | |
---|---|---|---|---|---|
just example |
2014-11-11 |
errorrik |
|
This is just blog example.
You can create a draft by using hexo new
command. For example:
$ hexo new draft <title>
Files will be saved in source/_drafts
folder.
To preview your site with drafts, you can enable render_drafts
setting in _config.yml
:
render_drafts: true
or run hexo server
with -d
or --drafts
flag.
$ hexo server --drafts
Once your draft is done, you can publish it with hexo publish
command.
$ hexo publish [layout] <filename>
Files will be moved to source/_posts
folder and applied with the layout you specified in the command.