hexo安装搭建个人博客
安装hexo
1 | npm install hexo-cli g |
初始化博客文件夹
1 | hexo init blog |
切换到该路径
1 | cd blog |
安装hexo的扩展插件
1 | npm install |
安装其它插件
1 | npm install hexo-server --save |
文章的发布
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
在实际发布过程中,上述操作可以简短方式书写如下:
1 | $ hexo clean & hexo g & hexo s |