常用命令hexo clean, hexo g, hexo g
。上传相册需要把相册保存到source/photos/ins目录下,然后在hexo根目录下运行python encode_jpg.py,实现图片压缩、缩略图生成。每次生成新的博客,在部署到github后需要运行node comment.js
来批量化开启gitalk评论区。
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