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.
Helow hexo
win+R
cmd
# 回车
# 进入自己的目录中
cd C:\Users\Administrator\blog\hamsali
hexo clean && hexo g
# 访问本地端口浏览
# 没啥问题后,上传
# 本地检查
hexo g && hexo s -p 4000
# 解锁限制:
git config --global http.sslVerify "false"
hexo d
Quick Start
Create a new post
$ hexo new "My New Post"
More info: Writing
Run server:运行服务
$ hexo server
hexo s
More info: Server
Generate static files: 生成静态文件
$ hexo generate
等同于:
hexo g
More info: Generating
Deploy to remote sites: 布置站点
$ hexo deploy
hexo d
More info: Deployment
说明文档
同步问题
它的主上传目前为:master,如果有main 需要删除。
目前不清楚main同步问题,设置其他的方式,不会同步。
注意点
操作完后记得保存。
同步还是比较麻烦的,可能不熟悉。
git config --global user.email "1341372712@qq.com"
git config --global user.name "hamsali"
# 先进入目录
cd blog
cd hamsali
# 本地查看
hexo clean && hexo g && hexo s
hexo g -s
# 解锁限制,针对上传的限制
git config --global http.sslVerify "false"
# 清除,渲染,git同步
hexo clean && hexo g && hexo d
hexo g -d
hexo d
使用教程
主要本地先测试,尽量一天最多提交两次,频率低些。
进入对应目录:
cd C:\Users\Administrator\blog\hamsali
基本命令
hexo new "postName" #新建文章
hexo new page "pageName" #新建页面
hexo generate #生成静态页面至public目录
hexo server #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
hexo deploy #将.deploy目录部署到GitHub
hexo help # 查看帮助
hexo version #查看Hexo的版本
hexo deploy -g #生成加部署
hexo server -g #生成加预览
命令的简写
hexo n == hexo new
hexo g == hexo generate
hexo s == hexo server
hexo d == hexo deploy
hexo clean && hexo g && hexo s
# 访问本地端口浏览
hexo d
# 没啥问题后,上传
有时候不用检查,可以直接上传代码。
win+R
cmd
# 回车
# 进入自己的目录中
cd C:\Users\Administrator\blog\hamsali
# 解锁限制:
git config --global http.sslVerify "false"
hexo clean && hexo g -d
hexo g && hexo d
hexo g -d
# 访问本地端口浏览
# 没啥问题后,上传
hexo g && hexo s -p 4000
# 解锁限制:
git config --global http.sslVerify "false"
hexo d
end-网站链接:
我的github ,github博客网址 ,coding博客网址 ,本地访问 ,