Hexo+GithubPage搭建Fan主题的博客(4)将本地Hexo项目部署到Github上
2023-09-14 09:12:52 时间
更多信息请关注 个人网站
将本地hexo项目部署到github上
(1)打开项目根目录下的_config.yml文件,配置deploy的相关信息,git地址为github创建好的仓库地址
deploy:
type: git
repo: git@github.com:redrose2100/blog_demo.git
branch: master
位置即文件如下:
(2)安装插件 hexo-deployer-git
npm install hexo-deployer-git --save
如:
D:\src\blog_demo>
D:\src\blog_demo>npm install hexo-deployer-git --save
added 1 package, and audited 336 packages in 3s
20 packages are looking for funding
run `npm fund` for details
8 vulnerabilities (1 low, 1 moderate, 1 high, 5 critical)
To address all issues possible (including breaking changes), run:
npm audit fix --force
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
D:\src\blog_demo>
(3)部署到github上
hexo g -d
(4)在浏览器打开 https://redrose2100.github.io/blog_demo/
如下,github上的博客已经OK了
github基础----配置公钥
github实战----github时不时打不开的完美解决办法
Hexo+GithubPage搭建Fan主题的博客(1)基础准备及Github仓库配置
Hexo+GithubPage搭建Fan主题的博客(2)本地初始化Hexo博客项目
Hexo+GithubPage搭建Fan主题的博客(3)更换Hexo博客主题
Hexo+GithubPage搭建Fan主题的博客(4)将本地Hexo项目部署到Github上
Hexo+GithubPage搭建Fan主题的博客(5)编写发表博客
Hexo+GithubPage搭建Fan主题的博客(6)设置博客分类、标签和关于页面
Hexo+GithubPage搭建Fan主题的博客(7)配置自定义域名
Hexo+GithubPage搭建Fan主题的博客(8)在另一台电脑编写发表博客
Hexo+GithubPage搭建Fan主题的博客(9)不用图床为博客配置本地插入图片
Hexo+GithubPage搭建Fan主题的博客(10)配置评论系统
Hexo+GithubPage搭建Fan主题的博客(11)为Hexo博客的valine评论系统配置邮件通知
Hexo+GithubPage搭建Fan主题的博客(12)为博客配置SEO搜索优化
相关文章
- springcloud seata_seata github
- 使用Vercel+GitHub快速构建Hexo博客
- 如何参与github开源项目
- 解决GitHub国内访问速度慢的问题
- Jekyll搭建博客并部署到GitHub
- github package的使用教程
- 使用 Hexo 和 GitHub 实现一台电脑的搭建两个博客
- 【实战】自定义 Github Action 库
- 利用 GitHub Action 自动部署 Hexo 博客
- 无需服务器的GitHub实时漏洞利用工具监听器,目前支持微信/TG推送,中文版 Github-CVE-Listener
- 15年封神,GitHub开发者破亿!这个滋养了全世界码农的网站,已成传奇
- GitHub收藏破万!谷歌联手哈佛发布首个炼丹指南:教你科学化「调参」
- 个人博客搭建(3):Typora+PicGo+Github/Gitee搭建免费稳定的图床
- 视频切片并上传到GitHub
- 基于jsDelivr+Github给网站如何换个漂亮的字体。
- 内核代码量不到一万行、GitHub star超5k,国产开源物联网操作系统TencentOS Tiny的探索与实践
- github-pages自定域名
- JERRY Hexo & GitHub 静态网站搭建说明
- GitHub 工程师谈 GitHub Pages 服务开发经验
- 使用 pelican 和 Github pages 来搭建博客
- 使用 Python 在 GitHub 上运行你的博客
- 【保姆级】利用Github搭建自己的个人博客,看完就会