Skip to content

Commit ae7bcea

Browse files
Deprecate leancloud_visitors
1 parent b27b8eb commit ae7bcea

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

_config.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ github_banner:
422422
# Find fonts on Google Fonts (https://fonts.google.com)
423423
# All fonts set here will have the following styles:
424424
# light | light italic | normal | normal italic | bold | bold italic
425-
# Be aware that setting too much fonts will cause site running slowly
425+
# Be aware that setting too much fonts will cause site loading slowly
426426
# ---------------------------------------------------------------
427427
# Web Safe fonts are recommended for `global` (and `title`):
428428
# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS
@@ -666,6 +666,7 @@ canvas_ribbon:
666666
# ---------------------------------------------------------------
667667
# Comments Settings
668668
# See: https://theme-next.js.org/docs/third-party-services/comments
669+
# More comment system plugins: https://github.com/next-theme/awesome-next/blob/main/README.md#comment
669670
# ---------------------------------------------------------------
670671

671672
# Multiple Comment System Support
@@ -807,19 +808,6 @@ plausible:
807808
script_url: # https://plausible.io/js/script.js
808809
site_domain: # www.example.com
809810

810-
# Show number of visitors of each article.
811-
# You can visit https://www.leancloud.cn to get AppID and AppKey.
812-
leancloud_visitors:
813-
enable: false
814-
app_id: # <your app id>
815-
app_key: # <your app key>
816-
# Required for apps from CN region
817-
server_url: # <your server url>
818-
# Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
819-
# If you don't care about security in leancloud counter and just want to use it directly
820-
# (without hexo-leancloud-counter-security plugin), set `security` to `false`.
821-
security: true
822-
823811
# Another tool to show number of visitors to each article.
824812
# Visit https://console.firebase.google.com/u/0/ to get apiKey and projectId.
825813
# Visit https://firebase.google.com/docs/firestore/ to get more information about firestore.

scripts/filters/minify.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ hexo.extend.filter.register('after_generate', () => {
120120
hexo.route.remove('js/third-party/statistics/firestore.js');
121121
}
122122

123-
if (!theme.leancloud_visitors.enable) {
123+
if (!theme.leancloud_visitors?.enable) {
124124
hexo.route.remove('js/third-party/statistics/lean-analytics.js');
125125
}
126126

0 commit comments

Comments
 (0)