diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-09-24 23:59:15 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-09-24 23:59:15 +0800 |
| commit | d23f16c5ffe7c8fe2e68d5dabb01761178aa7781 (patch) | |
| tree | 59f3c37cfefbd2e736986fab902174ebb6886a54 /includes | |
| parent | db86bb4726d28d679e425d09e5b98672ede1ac10 (diff) | |
:link: Perf: 相关链接只在首页展示
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/post-list.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/post-list.php b/includes/post-list.php index 583ae60..7f0ff46 100644 --- a/includes/post-list.php +++ b/includes/post-list.php @@ -6,11 +6,11 @@ 'tag' => _t('标签 %s 下的文章'), 'author' => _t('%s 发布的文章') ), '', ''); ?></h3><?php } ?> - <?php if($this->is('index') && $this->options->relatedLinks!=''): ?><!-- 相关链接 --> + <?php if($this->is('index') && $this->options->relatedLinks!='' && $this->_currentPage == 1): ?><!-- 相关链接 --> <?php if($this->options->relatedLinksTitle!=''): ?><h2 class="section-title"><?php $this->options->relatedLinksTitle(); ?></h2><?php endif; ?> <section class="indexlink"><?php Matcha::relatedLinks($this); ?></section><?php endif; ?> <!-- 文章列表 --> - <?php if($this->options->relatedLinksTitle!='' && $this->options->relatedLinks!=''): ?><h2 class="section-title">最新文章</h2><?php endif; ?> + <?php if($this->options->relatedLinksTitle!='' && $this->options->relatedLinks!='' && $this->_currentPage == 1): ?><h2 class="section-title">最新文章</h2><?php endif; ?> <section class="latest-post"> <?php while($this->next()): ?> <article class="post post-atmain<?php if($this->fields->thumbnail!='') echo ' post-with-thumbnail'; ?>" itemscope itemtype="http://schema.org/BlogPosting"> |
