summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2022-11-09 10:43:03 +0800
committerGitHub <noreply@github.com>2022-11-09 10:43:03 +0800
commitb4e65c442b729ab6352b7a291daeb8af8a20fa82 (patch)
tree3ae8bfeb75308768c09b29f9794896551f1dcae3 /includes
parentbf285ac1dee6be5f9c7961549dd904c2f9066094 (diff)
parenta6c41081a273a023c48779f15f63dcd1b1b87517 (diff)
Merge pull request #11 from KurococLiu/main
Fix: 新增字数统计、preconnect,修正部分文本错误、更进文档内容
Diffstat (limited to 'includes')
-rw-r--r--includes/head.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/head.php b/includes/head.php
index 19f0ab2..ccadbf9 100644
--- a/includes/head.php
+++ b/includes/head.php
@@ -1,11 +1,17 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE HTML>
-<html>
+<html lang="zh-cmn-Hans-CN">
<head>
<meta charset="<?php $this->options->charset(); ?>">
+ <!-- IE 8浏览器的页面渲染方式 & 默认使用极速内核:针对国内浏览器产商 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <!-- 自适应 -->
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">
+ <!-- 关闭百度转码 -->
+ <meta http-equiv="x-dns-prefetch-control" content="on">
+ <meta http-equiv="Cache-Control" content="no-transform">
+ <meta http-equiv="Cache-Control" content="no-siteapp">
<?php //设置 favicon
if($this->options->favicon){ ?>
<link rel="icon" type="image/x-icon" href="<?php $this->options->favicon(); ?>">