hexo主题

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

 今天又从新搞了下hexo,很久不动它竟然报了错。css

 这种状况能够先安装下相关的依赖:git

npm install hexo-deployer-git –save

  实在不行,就把它删掉,而后从新生成和部署。github

rm -rf .deploy_git hexo g hexo d


Next之Leancloud访客统计

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

解决

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

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

 

如上述两个解决办法:hexo

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

  2. security设置为security: falsepost

相关文章
相关标签/搜索