diff --git a/_config.yml b/_config.yml index 16591cc..b91c78b 100644 --- a/_config.yml +++ b/_config.yml @@ -422,7 +422,7 @@ github_banner: # Find fonts on Google Fonts (https://fonts.google.com) # All fonts set here will have the following styles: # light | light italic | normal | normal italic | bold | bold italic -# Be aware that setting too much fonts will cause site running slowly +# Be aware that setting too much fonts will cause site loading slowly # --------------------------------------------------------------- # Web Safe fonts are recommended for `global` (and `title`): # Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS @@ -666,6 +666,7 @@ canvas_ribbon: # --------------------------------------------------------------- # Comments Settings # See: https://theme-next.js.org/docs/third-party-services/comments +# More comment system plugins: https://github.com/next-theme/awesome-next/blob/main/README.md#comment # --------------------------------------------------------------- # Multiple Comment System Support @@ -807,19 +808,6 @@ plausible: script_url: # https://plausible.io/js/script.js site_domain: # www.example.com -# Show number of visitors of each article. -# You can visit https://www.leancloud.cn to get AppID and AppKey. -leancloud_visitors: - enable: false - app_id: # - app_key: # - # Required for apps from CN region - server_url: # - # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security - # If you don't care about security in leancloud counter and just want to use it directly - # (without hexo-leancloud-counter-security plugin), set `security` to `false`. - security: true - # Another tool to show number of visitors to each article. # Visit https://console.firebase.google.com/u/0/ to get apiKey and projectId. # Visit https://firebase.google.com/docs/firestore/ to get more information about firestore. diff --git a/scripts/filters/minify.js b/scripts/filters/minify.js index 33d60f7..e82aa53 100644 --- a/scripts/filters/minify.js +++ b/scripts/filters/minify.js @@ -120,7 +120,7 @@ hexo.extend.filter.register('after_generate', () => { hexo.route.remove('js/third-party/statistics/firestore.js'); } - if (!theme.leancloud_visitors.enable) { + if (!theme.leancloud_visitors?.enable) { hexo.route.remove('js/third-party/statistics/lean-analytics.js'); }