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 /includes/head.php | |
| parent | 5690f8c59778373553a2a4b96b18900cc41d13b4 (diff) | |
:zap: Add: 加入 HTML 压缩功能
Diffstat (limited to 'includes/head.php')
| -rw-r--r-- | includes/head.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/head.php b/includes/head.php index 3a6aa92..41f143d 100644 --- a/includes/head.php +++ b/includes/head.php @@ -1,4 +1,5 @@ -<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> +<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; +if($GLOBALS['miraclesIfCompressHTML']=='on') ob_start(); //ob 截取开始 ?> <!DOCTYPE HTML> <html<?php if($this->options->grayTheme && $this->options->grayTheme=1): ?> class="html-filter-gray"<?php endif; ?>> <head> |
