theme-next / hexo-theme-next

Elegant and powerful theme for Hexo.
https://theme-next.org
Other
8.17k stars 2.05k forks source link

compatibility with adblock (jsdelivr.com) #1695

Closed liuwangdao closed 2 years ago

liuwangdao commented 2 years ago

Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

website elements normally loaded

Actual behavior

blank page

Steps to reproduce the behavior

  1. adblock block site cdn.jsdelivr.net
  2. site with next can not be displayed,e.g. https://theme-next.js.org/ or mysite

next version:8.4.0(my site) but it work well on loacalhost:400

info. is not related below

welcome[bot] commented 2 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

liuwangdao commented 2 years ago

I revised ./_config.yml and it is solved

vendors:
  # The CDN provider of NexT internal scripts.
  # Available values: local | jsdelivr | unpkg | cdnjs
  # Warning: If you are using the latest master branch of NexT, please set `internal: local`
  internal: local
  # The default CDN provider of third-party plugins.
  # Available values: local | jsdelivr | unpkg | cdnjs
  # Dependencies for `plugins: local`: https://github.com/next-theme/plugins
  # plugins: jsdelivr
  # plugins: loli
  plugins: local
GitHub
GitHub - next-theme/plugins: 🔮 Third-party front-end plugins for Hexo theme NexT.
🔮 Third-party front-end plugins for Hexo theme NexT. - GitHub - next-theme/plugins: 🔮 Third-party front-end plugins for Hexo theme NexT.
sli1989 commented 2 years ago

jsdelivr 国内访问 好像不那么顺畅

SunJunge08 commented 2 years ago

I revised ./_config.yml and it is solved

vendors:
  # The CDN provider of NexT internal scripts.
  # Available values: local | jsdelivr | unpkg | cdnjs
  # Warning: If you are using the latest master branch of NexT, please set `internal: local`
  internal: local
  # The default CDN provider of third-party plugins.
  # Available values: local | jsdelivr | unpkg | cdnjs
  # Dependencies for `plugins: local`: https://github.com/next-theme/plugins
  # plugins: jsdelivr
  # plugins: loli
  plugins: local

GitHubGitHub - next-theme/plugins: 🔮 Third-party front-end plugins for Hexo theme NexT.🔮 Third-party front-end plugins for Hexo theme NexT. - GitHub - next-theme/plugins: 🔮 Third-party front-end plugins for Hexo theme NexT.

I tried to do by your method but it doesn't work...