Skip to content

caojiurui/blog_dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

个人博客开发

个人博客开发mini框架,基于node插件一大堆又怕数据丢失,就放在github上了。

一:安装软件

  • 安装 git
  • 安装 nodejs

二:安装node插件

  1. 全局安装hexo插件 npm install hexo-cli -g
  2. 下载git源码到 git clone https://github.com/caojiurui/blog_dev.git 目录
  3. cd 目录,执行 npm install

三:本地调试博客页面

  • 清空缓存 hexo clean
  • 调试启动服务 hexo s --debug

四:发布到github

  • 生成静态页面 hexo g
  • 推送到github hexo d

    git的配置在_config.ymldeploy 属性

备注

  • 假如部署到github主页上,项目名称为 <username>.github.io
  • 假如需要配置域名,域名直接配置到 /source/CNAME 文件,不带协议前缀

参考文档:
  1. Hexo简介(by 墨飞_Max):https://www.cnblogs.com/mophy/p/7016331.html
  2. Hexo简洁主题推荐 (by 屠城9441) https://www.haomwei.com/technology/maupassant-hexo.html

我的博客:树洞X

About

个人博客开发

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published