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
install node
1 | curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash |
install hexo
1 | npm install hexo-cli -g |
validate
1 | $ hexo -v |
show hello world
init project
1 | $ hexo init hexo-demo |
run server
1 | $ hexo server |
More info: Server
Visit url at http://localhost:4000
Deploy to GitHub
create a new post
1 | $ hexo new "My New Post" |
Can we config the default post at _config.yml.
1 | default_layout: post |
More info: Writing
Generate static files
1 | $ hexo generate |
hexo generate can simple as hexo g
More info: Generating
config GitHub yourname.github.io
config deploy repository
1 | deploy: |
Deploy to remote sites
1 | $ hexo deploy |
hexo deploy can simple as hexo d
More info: Deployment
赏
使用支付宝打赏
使用微信打赏
若你觉得我的文章对你有帮助,欢迎点击上方按钮对我打赏