diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-07-14 14:15:59 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-07-14 14:15:59 +0800 |
| commit | d75331d8b8816f0806ca324b550483cbadaf656f (patch) | |
| tree | 804ff5f554ac0917a3abde0e9526466da508e0d2 /themeConfig.php | |
| parent | 5690f8c59778373553a2a4b96b18900cc41d13b4 (diff) | |
:zap: Add: 加入 HTML 压缩功能
Diffstat (limited to 'themeConfig.php')
| -rw-r--r-- | themeConfig.php | 12 |
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 |
