安装#安装clinpm install hexo-cli -g#博客文件夹hexo init blogcd blognpm installhexo server 部署到gitee#1.读取本地SSHcd ~/.ssh#2.仓库的SSH地址git config --global user.name "HchenP"git config --global user.email "1107383160@qq.com"#3.创建SSH Keyssh-keygen -t rsa -C "1107383160@qq.com"#覆盖--y#4.获取SSH公钥cat ~/.ssh/id_rsa.pub#5.gitee绑定公钥#6.测速连接ssh -T git@gitee.com#7.安装 hexo-deployer-gitnpm install hexo-deployer-git --save#8.blog配置文件_config.ymldeploy: type: 'git' repository: SSH地址git@gitee.com:hchenp/hchenp.git#8.推送博客目录到远程 Giteehexo ghexo d#9.开启Gitee Pages服务 -- 强制使用HTTPS 编辑#创建新文章hexo new "new pages"#地址source-->_posts#清理缓存hexo cleanhexo c 更新My-Gitee #本地预览#生成网页hexo g#启动服务器hexo s#部署hexo g -d#更新 Gitee Pages 服务 主题–配置文章配置---title: Hello World # 标题tags: [hello] # 标签categories: # 分类description: hello word~ # 描述top_img: /img/hello-1.png # 顶部背景图cover: /img/hello-1.png # 文章封面--- 分类 – 标签 #分类hexo new page categories#source/categories/index.md#标签hexo new page tags#source/tags/index.md