博客简介


Cole的博客

stay foolish,stay hangry.


关于本站

关于本人

  • 一个梦想成为大牛的菜鸟
  • 擅长写各种语言的 helloworld,熟悉python,golang
  • 编程业余爱好者


搭建博客教程:

  1. 参考文档:https://jingyan.baidu.com/article/e8cdb32b0ce12137042bad51.html

  2. 博客源码:
    https://github.com/blinkfox/hexo-theme-matery/blob/develop/README_CN.md

  3. 参考文档1中出现的问题:

     * 配置git用户信息不需要
     * 仓库名字必须和github用户名一致
     * Indigo主题不可用
     * 配置文件_config.yml中branch为main。  
        主要是2020年10月1往后,Github会将全部新建的仓库的默认分支从master
       修改成main这就致使了一些旧仓库主分支是master,新仓库主分支是main的  
       问题,这在有时候会带来一些麻烦。  
       原文地址:javashuo.com/article/p-sywuntzy-ny.html
    

4.常用命令
* hexo g 编译工程
* hexo d 上传到服务器
* hexo s 开启本地服务
* hexo n “博客名字” 新建博客:会在source/_posts文件夹下生成同名的markdown文件


Author: cole
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source cole !
  TOC