summaryrefslogtreecommitdiffstats
path: root/themeConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'themeConfig.php')
-rw-r--r--themeConfig.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/themeConfig.php b/themeConfig.php
index 89357b0..ba13cfe 100644
--- a/themeConfig.php
+++ b/themeConfig.php
@@ -7,12 +7,16 @@
* 通常 'on' 表示开启;'off' 则表示关闭
*/
+/* 字体 */
+
//主题字体 CDN
$GLOBALS['miraclesFontCDN'] = array(
'if' => 'on', //是否开启字体 CDN(使用思源宋体/黑体)
'cdn' => 'google_font' //默认 Google Font,可选项:google_font / font_lolinet,或者直接输入字体文件 url
);
+/* 文章缩略图 */
+
//是否剪裁文章缩略图
//使用 TimThumb 剪裁文章缩略图能达到最好效果,但会消耗服务器资源
$GLOBALS['miraclesIfTimThumb'] = 'off';
@@ -33,4 +37,10 @@ $GLOBALS['miraclesTimThumbAllowList'] = array (
'imageshack.us',
'tinypic.com',
'jsdelivr.net'
-); \ No newline at end of file
+);
+
+/* 页面压缩 */
+
+//是否压缩 HTML 源代码
+//压缩能优化页面传输速度,但可能会给服务器增加一定负担(不过也还好
+$GLOBALS['miraclesIfCompressHTML'] = 'on'; \ No newline at end of file