ahonn / hexo-theme-even

:rocket: A super concise theme for Hexo
https://ahonn.github.io/hexo-theme-even/
MIT License
1.36k stars 213 forks source link

Upgrade the Leancloud CDN and config. #291

Closed MrEasonYang closed 1 year ago

MrEasonYang commented 2 years ago

The original implementation uses the old Leancloud CDN and API with a deprecated domain which is 404 currently. The PR upgraded the CDN address so that the counter could work again.

Additionally, Leancloud has required CN Apps to use the specified public domain or custom domain recently, so I also exposed a required config named server_url to support user defined domain.

Considering the Leancloud now depending on the third-party CDN like unpkg/jsdelivr instead of providing an official one, I added an optional CDN config so that the users would be able to use the CDN as they wish.