12

hexo主题

【Hexo异常】fatal: in unpopulated submodule '.deploy_git'

 今天又重新搞了下hexo,好久不动它居然报了错。

 这种情况可以先安装下相关的依赖:

npm install hexo-deployer-git –save

  实在不行,就把它删掉,然后重新生成和部署。

rm -rf .deploy_git
hexo g
hexo d


Next之Leancloud访客统计

Error: 阅读次数:Counter not initialized! See more at console err msg.

解决

出现上述之错误,遂查看配置文件之说明

1
2
3
4
5
6
7
8
9
10
11
# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
leancloud_visitors:
enable: true
app_id: <<your app id>>
app_key: <<your app key>>
# Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
# If you don't care about security in lc counter and just want to use it directly
# (without hexo-leancloud-counter-security plugin), set the `security` to `false`.
security: true
betterPerformance: false

 

如上述两个解决办法:

  1. 安装hexo-leancloud-counter-security并设置leancloudapp_idapp_key

  2. security设置为security: false

posted @ 2019-05-09 11:13  那片海岸  阅读(281)  评论(0编辑  收藏  举报