一系列修改

This commit is contained in:
LinRuiqi
2025-08-24 22:31:46 +08:00
parent ee50636d5d
commit f7ccf8ec84
3 changed files with 105 additions and 26 deletions

View File

@@ -5,26 +5,27 @@
<head>
<style>:root { --accent-color: <?php echo $this->options->accent_color ?: '#121212'; ?>; }</style>
<meta http-equiv="content-type" content="text/html; charset=<?php $this->options->charset(); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<meta http-equiv="content-type" content="text/html; charset=<?php $this->options->charset(); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" >
<meta name="description" content="<?php if ($this->options->description): ?><?php $this->options->description(); ?><?php endif; ?>">
<link rel="profile" href="http://gmpg.org/xfn/11">
<title><?php $this->archiveTitle([
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
], '', ' - '); ?><?php $this->options->title(); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<title><?php $this->archiveTitle([
'category' => _t('分类 %s 下的文章'),
'search' => _t('包含关键字 %s 的文章'),
'tag' => _t('标签 %s 下的文章'),
'author' => _t('%s 发布的文章')
], '', ' - '); ?><?php $this->options->title(); ?><?php if ($this->options->description): ?> - <?php $this->options->description(); ?><?php endif; ?></title>
<?php $this->header(); ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('comments.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/font-awesome.css'); ?>">
<script src="<?php $this->options->themeUrl('js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/global.js'); ?>"></script>
<?php $this->header(); ?>
<link rel="stylesheet" href="<?php $this->options->themeUrl('style.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('comments.css'); ?>">
<link rel="stylesheet" href="<?php $this->options->themeUrl('css/font-awesome.css'); ?>">
<script src="<?php $this->options->themeUrl('js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/global.js'); ?>"></script>
</head>
</head>
<body class="<?php $this->options->bodyClass(); ?>">
@@ -75,16 +76,16 @@
<li class="social-search-wrapper"><a href="<?php $this->options->siteUrl(); ?>?s=" class="search-toggle"><span class="screen-reader-text"><?php _e('搜索'); ?></span></a></li>
<?php if ($this->options->socialTwitter): ?>
<li><a href="<?php echo $this->options->socialTwitter; ?>" target="_blank"><span class="screen-reader-text">Twitter</span></a></li>
<?php if ($options->socialTwitter): ?>
<li><a href="<?php echo $options->socialTwitter; ?>" target="_blank"><span class="screen-reader-text">Twitter</span></a></li>
<?php endif; ?>
<?php if ($this->options->socialFacebook): ?>
<li><a href="<?php echo $this->options->socialFacebook; ?>" target="_blank"><span class="screen-reader-text">Facebook</span></a></li>
<?php if ($options->socialFacebook): ?>
<li><a href="<?php echo $options->socialFacebook; ?>" target="_blank"><span class="screen-reader-text">Facebook</span></a></li>
<?php endif; ?>
<?php if ($this->options->socialGitHub): ?>
<li><a href="<?php echo $this->options->socialGitHub; ?>" target="_blank"><span class="screen-reader-text">GitHub</span></a></li>
<?php if ($options->socialGitHub): ?>
<li><a href="<?php echo $options->socialGitHub; ?>" target="_blank"><span class="screen-reader-text">GitHub</span></a></li>
<?php endif; ?>