summaryrefslogtreecommitdiffstats
path: root/includes/head.php
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-04-12 15:34:50 +0800
committerBigCoke233 <hi@guhub.cn>2020-04-12 15:34:50 +0800
commit8a03995d72a9afe999c243cffd1fae05b441c172 (patch)
tree527fc1e6b1961d93b1d7b4ef6ecb8bd896fb6731 /includes/head.php
parent6ea3d1d34ace40447f5505eb13f132d5876b4c70 (diff)
:books: Add: 支持自定义静态资源 CDN
Diffstat (limited to 'includes/head.php')
-rw-r--r--includes/head.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/head.php b/includes/head.php
index 7d65937..404f6c2 100644
--- a/includes/head.php
+++ b/includes/head.php
@@ -45,7 +45,8 @@
<!-- css -->
<?php
$css_files=array("codestyle","owo.min","nprogress","fancybox","main/miracles.min");
- generate_require($css_files,"css",$this->options->CDN?"https://cdn.jsdelivr.net/gh/BigCoke233/miracles@":"");
+ if($this->options->customCDN): $custom=$this->options->customCDN; else: $custom=Helper::options()->themeUrl("","Miracles"); endif;
+ generate_require($css_files,"css",$this->options->CDN,$custom);
?>
<!-- icon font -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_1djdjjwge4m.css" />