Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat.support customization of CDN for third-party #389

Merged
merged 3 commits into from
Jul 2, 2022

Conversation

ink-soul
Copy link
Contributor

@ink-soul ink-soul commented Jun 14, 2022

Fixes #385

提供自定义第三方库CDN的功能支持


----------------------------------------------

cdnCustomized = "https://fastly.jsdelivr.net/"

----------------------------------------------

配置文件中无此项或不填充时默认为"https://cdn.jsdelivr.net/"

Due to cdn.jsdelivr.net has been DNS pollution in China,replace cdn.jsdelivr.net with fastly.jsdelivr.net
提供支持自定义第三方库CDN的功能
```
cdnCustomized = "https://cdn.jsdelivr.net"
```
配置文件中无此项或不填充时默认为"https://cdn.jsdelivr.net"
@reuixiy
Copy link
Owner

reuixiy commented Jun 14, 2022

Nice!

assets/js/copy.js Outdated Show resolved Hide resolved
Copy link
Owner

@reuixiy reuixiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

重构了一下,抽出了 utils/lib.html

@reuixiy reuixiy merged commit a6111f9 into reuixiy:master Jul 2, 2022
@reuixiy
Copy link
Owner

reuixiy commented Jul 2, 2022

刚刚没验证,现在修复了 :) 74ea4db

ulmefors pushed a commit to ulmefors/hugo-theme-meme that referenced this pull request Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jsdelivr has been DNS pollution again in China,Why not replace cdn.jsdelivr.net with fastly.jsdelivr.net
2 participants