summaryrefslogtreecommitdiff
path: root/includes/head.php
blob: ccadbf9cf31866bb1c38149c407ebdfa70253f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<!DOCTYPE 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, 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(); ?>">
    <?php } 
    //输出网站标题、css 引用和其他 head 内容 ?>
    <title><?php Matcha::title($this); ?></title>
    <?php Matcha::head(); $this->header(); ?>

    <style>
        :root {
            --theme-color: <?php echo Matcha::getThemeColor(); ?>;
        }
    </style>
</head>