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

相關文章
相關標籤/搜索