YunYouJun / hexo-theme-yun

☁️ A fast & light & lovely theme for Hexo. 一个对可爱自以为是的 Hexo 主题。
https://yun.yunyoujun.cn
MIT License
1.41k stars 170 forks source link

使用除jsdelivr外的其他cdn #295

Closed BnqDzj closed 2 years ago

BnqDzj commented 2 years ago

jsdelivr已经被墙,导致网站加载速度过慢

vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hexo-theme-yun ✅ Ready (Inspect) Visit Preview May 16, 2022 at 0:40AM (UTC)
hexo-theme-yun-docs ✅ Ready (Inspect) Visit Preview May 16, 2022 at 0:40AM (UTC)
YunYouJun commented 2 years ago

hk1.monika.love 来自?

unpkg.com 的速度估计也不大行,为了从根本上解决问题,我打算添加一个自动替换前缀或缓存到本地发布的功能。

YunYouJun commented 2 years ago

hk1.monika.love 来自?

unpkg.com 的速度估计也不大行,为了从根本上解决问题,我打算添加一个自动替换前缀或缓存到本地发布的功能。

BnqDzj commented 2 years ago

hk1.monika.love 来自?

unpkg.com 的速度估计也不大行,为了从根本上解决问题,我打算添加一个自动替换前缀或缓存到本地发布的功能。

hk1.monika.love 来自 https://greasyfork.org/zh-CN/scripts/412245-github-%E5%A2%9E%E5%BC%BA-%E9%AB%98%E9%80%9F%E4%B8%8B%E8%BD%BD

如果考虑自动替换前缀的话可以参考https://github.com/EtherDream/freecdn这个项目

YunYouJun commented 2 years ago

添加了新功能,允许自定义 vendors.host,以更改不同 CDN 起始路径(由于 cdn.jsdelivr.com 在国内已被污染,建议改为使用 https://fastly.jsdelivr.com/npm/。)

https://github.com/YunYouJun/hexo-theme-yun/releases/tag/v1.9.3

YunYouJun commented 2 years ago

感谢您的贡献,但我认为 v1.9.3 的做法更为通用。