页面LeanCloud的阅读次数提示‘Counter not initialized! See more at console err msg.’

似乎是next使用的LeanCloud访客统计插件存在重大安全漏洞,需要手动修复。

具体步骤参考文章:Leancloud访客统计插件重大安全漏洞修复指南

如果在配置的最后hexo运行的时候提示错误信息:

FATAL bad indentation of a mapping entry at line 92, column 3:
- type: leancloud_counter_securi …
^
YAMLException: bad indentation of a mapping entry at line 92, column 3:
- type: leancloud_counter_securi …
^

那就是在博客配置文件里配置deploy的时候,新增的- type: leancloud_counter_security_sync那一行的缩进有误
正确缩进格式应该是这样:
(详情请参加yaml语法)

1
2
3
4
5
deploy:
- type: git
repository: git@github.com:Yourname/Yourname.github.io.git
branch: master
- type: leancloud_counter_security_sync

__END__