From a7ed1d80c4a32b256a0d9bd381adc68fb568e85d Mon Sep 17 00:00:00 2001 From: KawaiiZapic Date: Tue, 16 Apr 2024 11:08:54 +0800 Subject: [PATCH] improve: handle untitled article --- src/index.php | 3 +++ src/post.php | 21 +++++++-------------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/src/index.php b/src/index.php index 3d406c3..5dbe94f 100644 --- a/src/index.php +++ b/src/index.php @@ -53,6 +53,9 @@ title(); ?> + title) == 0) {?> + 无标题文章 +
hidden && $this->fields->description) echo $this->fields->description; else $this->excerpt(300,'...'); ?> diff --git a/src/post.php b/src/post.php index 9bab85b..fb6befa 100644 --- a/src/post.php +++ b/src/post.php @@ -13,16 +13,7 @@ category(" | "); ?>
- archiveType === 'index' ? $this->options->title() : $this->archiveTitle( - array( - 'category' => _t('分类 %s 下的文章'), - 'search' => _t('包含关键字 %s 的文章'), - 'tag' => _t('标签 %s 下的文章'), - 'author' => _t('%s 发布的文章') - ), - '', - '' - ); ?> + title(); ?>
___length() === 0) { ?>
没有评论
-
" id="respondId(); ?>"> +
" + id="respondId(); ?>">
评论已关闭 -
+
@@ -102,7 +94,7 @@
- user->hasLogin()){ ?> + user->hasLogin()) { ?>
user->screenName(); ?> @@ -118,7 +110,8 @@
- +
评论 取消回复