增加 favicon 显示

This commit is contained in:
Skywt2003 2021-08-30 21:39:25 +08:00
parent 78f9e94e3a
commit 4d6ed40aae
3 changed files with 7 additions and 0 deletions

BIN
assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -12,6 +12,9 @@
'tag' => _t('标签 %s 下的文章'), 'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章') 'author' => _t('%s 发布的文章')
), '', ' - '); ?><?php $this->options->title(); ?></title> ), '', ' - '); ?><?php $this->options->title(); ?></title>
<link rel="apple-touch-icon" href="<?php $this->options->logoUrl() ?>">
<link rel="shortcut icon" href="<?php $this->options->themeUrl('/assets/favicon.ico')?>" />
<link rel="bookmark" href="<?php $this->options->themeUrl('/assets/favicon.ico')?>" type="image/x-icon"/>
<!-- Google Fonts --> <!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet">

View File

@ -16,6 +16,10 @@ $this->need('functions.php'); // 不知道为啥,似乎模版页面不会自
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php $this->options->title(); ?></title> <title><?php $this->options->title(); ?></title>
<link rel="apple-touch-icon" href="<?php $this->options->logoUrl() ?>">
<link rel="shortcut icon" href="<?php $this->options->themeUrl('/assets/favicon.ico')?>" />
<link rel="bookmark" href="<?php $this->options->themeUrl('/assets/favicon.ico')?>" type="image/x-icon"/>
<!-- Google Fonts --> <!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Poppins:200,300,400,600,700,800" rel="stylesheet">