diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-04-14 16:07:55 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-04-14 16:07:55 +0800 |
| commit | 58e160f1fe246ac24176f13d4da530872f94e6bc (patch) | |
| tree | 90ee68e78d5570ea3b9a15c4ae66de938c19576e /functions.php | |
| parent | e045d79712c6e5f1a307129de219ab9c104162ce (diff) | |
:ambulance: Add: 添加 GitHack CDN 作为静态资源加速(减速)选择
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/functions.php b/functions.php index be3fccc..1ddceb2 100644 --- a/functions.php +++ b/functions.php @@ -85,7 +85,10 @@ function generate_require($files,$type,$cdn,$custom) { $path = 'https://cdn.jsdelivr.net/gh/BigCoke233/miracles@'.themeVersion()."/"; } elseif ($cdn=='2'){ - $path = 'http://raw.githack.com/BigCoke233/miracles/master/'; + $path = 'https://raw.githack.com/BigCoke233/miracles/master/'; + } + elseif ($cdn=='4'){ + $path = 'https://rawcdn.githack.com/BigCoke233/miracles/master/'; } elseif ($cdn=='3'){ $path = $custom; |
