summaryrefslogtreecommitdiffstats
path: root/includes/head.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2019-12-20 20:10:25 +0800
committerGitHub <noreply@github.com>2019-12-20 20:10:25 +0800
commit1d13395cbe8dbc813bbaa2beb9ffd914bd1331fa (patch)
tree1916d110f4282b4b42599d85af850abdcd6942e7 /includes/head.php
parent9b6d32ecaac85cdc671b549f48ce5653dec52264 (diff)
parentf145340482111518f91e0ffce7fb2ea1b4964ef5 (diff)
Merge pull request #19 from outtimes/master
年⭐底⭐劲⭐爆 明🏮年🏮再🏮更
Diffstat (limited to 'includes/head.php')
-rw-r--r--includes/head.php19
1 files changed, 6 insertions, 13 deletions
diff --git a/includes/head.php b/includes/head.php
index cf25c22..1876285 100644
--- a/includes/head.php
+++ b/includes/head.php
@@ -20,6 +20,8 @@
}
?>
<title><?php Contents::title($this); ?></title>
+ <meta itemprop="name" content="<?php Contents::title($this); ?>"/>
+ <meta itemprop="image" content="<?php Utils::indexTheme('favicon.ico'); ?>" />
<meta name="author" content="<?php $this->author(); ?>" />
<meta name="description" content="<?php if($description != '') echo $description; else $this->excerpt(50); ?>" />
<meta property="og:title" content="<?php Contents::title($this); ?>" />
@@ -38,19 +40,10 @@
<?php $this->header('description=&'); ?>
<?php $this->options->headerEcho(); ?>
<!-- css -->
- <?php if($this->options->CDN && $this->options->CDN=1): ?>
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/codestyle.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/owo.min.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/fancybox.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/prism.css" />
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/BigCoke233/miracles@<?php echo themeVersion(); ?>/assets/css/main/miracles.min.css" />
- <?php else: ?>
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/codestyle.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/owo.min.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/nprogress.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/fancybox.css'); ?>" />
- <link rel="stylesheet" href="<?php Utils::indexTheme('assets/css/main/miracles.min.css'); ?>" />
- <?php endif; ?>
+ <?php
+ $css_files=array("codestyle","owo.min","nprogress","fancybox","main/miracles.min");
+ generate_require($css_files,"css",$this->options->CDN?"https://cdn.jsdelivr.net/gh/BigCoke233/miracles@":"");
+ ?>
<!-- icon font -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1165190_t5sh6mq8n6i.css" />
<!-- Google Fonts -->