Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

整理source/post下的文章

新增文件夹不会影响,例如新增source/posts/23-Compiler,并将文章和图片文件夹一起移入,在文章中使用相对地址来引入图片,并安装插件hexo-asset-image

确保 _config.ymlpost_asset_folder: true.

使用 ![logo](ch01/logo.jpg) 就可引用到图片 logo.jpg.

1
npm install hexo-asset-image@0.0.1 --save