2024-03-22 分类: 网站建设
注册github账号登陆GitHub账号,点击"Your repositories"new一个新的repositories,如下图填写:
二:安装node.js下载node.js (Node.js);
2. 安装cnpm# 选用淘宝镜像下载npm install -g cnpm --registry=https://registry.npm.taobao.org #安装失败可多次尝试cnpmcnpm -v
3. 安装hexo-clicnpm install -g hexo-clihexo -vD:cd Iblogchdir## 必须先安装githexo init
4. 启动博客hexo s# INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
三:上传博客#新建博客hexo n "我的第一篇博客文章"cd source/_postsdircd ../../# 清理数据hexo clean# 生成hexohexo g# 重新启动hexo s
四:博客免费部署到github上去
1.在github上新建一个repositorynpm install hexo-deployer-git --save
2.使用UltraEdit打开"_config.yml",打开页面如下:
2.1.更改(每个冒号后面要有一个空格):
2.2. 输入:# 提交账户git config --global user.email "smiles2011hyc@gmail.com"git config --global user.name "smiles2011hyc"hexo d
点击“sign in with your brower"
点击 “Authorize GitCredentialManager"
2.3. 博客部署页面已经完成
输入网址:博客地址
2.4. 自定义一个hexo主题git clone https://github.com/litten/hexo-theme-yilia.git themes/yiliacd themes\yiliadir
2.5. 修改_config.yml
hexo cleanhexo ghexo s# 推到远端即github中hexo d
参考视频:https://www.bilibili.com/video/BV1Yb411a7ty/?spm_id_from=trigger_reload
分享标题:上线了网站如何制作登录和注册
网址分享:https://www.cdcxhl.com/news39/321289.html
成都网站建设公司_创新互联,为您提供网站内链、建站公司、Google、网站设计、用户体验、App开发
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联
猜你还喜欢下面的内容