From d75331d8b8816f0806ca324b550483cbadaf656f Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Tue, 14 Jul 2020 14:15:59 +0800 Subject: =?UTF-8?q?:zap:=20Add:=20=E5=8A=A0=E5=85=A5=20HTML=20=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themeConfig.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'themeConfig.php') 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 -- cgit v1.2.3