首页 > 其他分享 >Hexo+Github搭建个人博客

Hexo+Github搭建个人博客

时间:2023-02-24 20:03:16浏览次数:66  
标签:git Hexo hexo GitHub 博客 Github new 搭建

参考博客 : https://blog.csdn.net/qq_54796785/article/details/126053172

注意:仓库名应为GitHub的用户名

heox的基本命令

hexo new "postName"      #新建文章
hexo new page "pageName" #新建页面
hexo generate            #生成静态页面至public目录
hexo server              #开启预览访问端口(默认端口4000,'ctrl + c'关闭server)
hexo deploy              #部署到GitHub
hexo help                # 查看帮助
hexo version             #查看Hexo的版本
对应的缩写:
hexo n == hexo new

hexo g == hexo generate

hexo d == hexo deploy

问题?

部署后提示:ERROR Deployer not found: git

1. 先执行下面的命令,再执行hexo d

2. 下面两种方法,第一种不行就用第二种:

case 1: npm install `--`save hexo-deployer-git
		or
case 2: npm install hexo-deployer-git --save

标签:git,Hexo,hexo,GitHub,博客,Github,new,搭建
From: https://www.cnblogs.com/lj15941314/p/17152950.html

相关文章