diff --git a/comments.php b/comments.php index 7ac3fbd..1c68178 100644 --- a/comments.php +++ b/comments.php @@ -1,7 +1,8 @@
comments()->to($comments); ?> - allow('comment') && stripos($_SERVER['HTTP_ACCEPT_LANGUAGE'], 'zh') > -1): ?> + allow('comment') && stripos($language, 'zh') > -1): ?> is('attachment')) : ?>

diff --git a/dist/js/bundle.js b/dist/js/bundle.js index 5009a60..48b5d37 100644 --- a/dist/js/bundle.js +++ b/dist/js/bundle.js @@ -17,7 +17,7 @@ is_single = false; post_id = 0; is_archive = false; - VERSION = "0.6.2"; + VERSION = "0.6.3"; constructor() { super(); this.initCopyright(); diff --git a/header.php b/header.php index 957100e..41545f6 100644 --- a/header.php +++ b/header.php @@ -1,7 +1,4 @@ diff --git a/index.php b/index.php index ee54eea..8f750f8 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * 一款单栏主题. 移植自HUGO主题 Farallon 原作者 bigfa * @package Farallon * @author 老孙 - * @version 0.6.2 + * @version 0.6.3 * @link https://www.imsun.org */ if (!defined('__TYPECHO_ROOT_DIR__')) exit; diff --git a/page-archives.php b/page-archives.php index 9a51a25..a9cbbd6 100644 --- a/page-archives.php +++ b/page-archives.php @@ -1,4 +1,4 @@ - $output = '
'; // Start archives container while ($archives->next()) { $year_tmp = date('Y', $archives->created); - $mon_tmp = date('m', $archives->created); + $mon_tmp = date('m', $archives->created); + // 检查是否需要新的年份标题 if ($year != $year_tmp) { if ($year > 0) { @@ -28,7 +29,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> } $year = $year_tmp; $mon = 0; // 重置月份 - $output .= '

' . $year . '

'; // 开始新的年份div + $output .= '

' . $year . '年

'; // 开始新的年份div } // 检查是否需要新的月份标题 if ($mon != $mon_tmp) { @@ -36,7 +37,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> $output .= ''; // 结束上一个月份的列表 } $mon = $mon_tmp; - $output .= '

';// '. $mon . ' + $output .= '

' . $mon . '月

'; $output .= '
    '; // 开始新的月份列表 } // 输出文章项 @@ -56,5 +57,4 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> ?>
-need('footer.php'); ?> - \ No newline at end of file +need('footer.php'); ?> \ No newline at end of file