hexo tese Conclusion

---

title: testConclusion

date: 2019-10-27 00:31:39

tags: [技术]

hidden: true

---

hexo new onePage 能够在本地仓库新建一个页面  

hexo g 指令能够生成静态页面  

hexo d 能够将本地静态页面部署到github.io上


 

  

但是!  

本地仓库中的内容比如,*md文件不会自动push到github仓库中

 

### 2019年11月6日00:47:46 

我hexo d 了多次,仍然发布不了博客,非常郁闷;  

解决方案:  

先   hexo clean  

后   hexo g  

最后  hexo d  

测试结果成功!  

 

记得先在本地安装加密组件`

 

    npm install --save hexo-blog-encrypt

 

一键解决方案:    

  

    hexo clean && hexo g && hexo d &&  git add . && git commit -m "update" && git push

 

一键保存仓库,但是不deploy部署网站

 

    git add . && git commit -m "blog backup" && git push

 

### 2019年11月6日00:47:46 

1. 发布博客前,请先安装hexo的加密组件,不然加密信息会被看到;

 

    npm install --save hexo-blog-encrypt

 

2. 加密之后的信息,git clone XXX.github.io后仍然是看不到了;

 

3. 如何创建草稿

 

    hexo new draft "new draft"

 

4. 如何发布草稿

 

    hexo publish "title"

 

5. 如何用VSCode编辑博客

 

    Ctrl+` 打开命令行

    更换默认的terminal,使用git bash

 

6. 如何在git bash 中完成 add,commit push

 

    git add .

    git commit -m "add something"

    git push

 

7. 如何添加字数统计功能

 

    npm i hexo-symbols-count-time --save

    然后请参考

    https://co5.me/2018/180613-wordcount.html

 

8. 如何添加隐藏功能

 

    npm install hexo-hide-posts --save

    请参考

    https://github.com/printempw/hexo-hide-posts/blob/master/README_ZH.md

 

9. 如何添加评论功能

posted @ 2020-08-14 22:59  bH1pJ  阅读(22)  评论(0编辑  收藏  举报