网站首页 > 开源技术 正文
- 注册github账号
- 登陆GitHub账号,点击"Your repositories"
- new一个新的repositories,如下图填写:
二:安装node.js
- 下载node.js (Node.js);
2. 安装cnpm
# 选用淘宝镜像下载
npm install -g cnpm --registry=https://registry.npm.taobao.org #安装失败可多次尝试
cnpm
cnpm -v
3. 安装hexo-cli
cnpm install -g hexo-cli
hexo -v
D:
cd Iblog
chdir
## 必须先安装git
hexo init
4. 启动博客
hexo s
# INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
三:上传博客
#新建博客
hexo n "我的第一篇博客文章"
cd source/_posts
dir
cd ../../
# 清理数据
hexo clean
# 生成hexo
hexo g
# 重新启动
hexo s
四:博客免费部署到github上去
1.在github上新建一个repository
npm 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/yilia
cd themes\yilia
dir
2.5. 修改_config.yml
修改theme下的主题:
hexo clean
hexo g
hexo s
# 推到远端即github中
hexo d
参考视频:
https://www.bilibili.com/video/BV1Yb411a7ty/?spm_id_from=trigger_reload
- 上一篇: win10安装vue开发环境
- 下一篇: Vue3教程 1.搭建及安装步骤
猜你喜欢
- 2025-05-15 .net core集成vue
- 2025-05-15 Vue开发环境搭建
- 2025-05-15 创建Electron工程
- 2025-05-15 个人博客搭建保姆级教程3——hexo
- 2025-05-15 (实用派)Express之创建并配置运行vue项目
- 2025-05-15 package.json 与 package-lock.json 的关系
- 2025-05-15 deepin-linux的vue学习(二)git克隆开源vue项目和本地运行
- 2025-05-15 手把手教你搭建免费个人博客网站
- 2025-05-15 一步步使用SpringBoot实现登录和用户管理功能源码分享
- 2025-05-15 swagger-editor编写好api文档在哪用?这个工具你也得了解
你 发表评论:
欢迎- 05-15.net core集成vue
- 05-15Vue开发环境搭建
- 05-15创建Electron工程
- 05-15个人博客搭建保姆级教程3——hexo
- 05-15(实用派)Express之创建并配置运行vue项目
- 05-15package.json 与 package-lock.json 的关系
- 05-15deepin-linux的vue学习(二)git克隆开源vue项目和本地运行
- 05-15手把手教你搭建免费个人博客网站
- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)
本文暂时没有评论,来添加一个吧(●'◡'●)