This commit is contained in:
浪子
2025-04-07 09:14:37 +08:00
parent 26e2c5b40c
commit 4dce3365b6
5 changed files with 93 additions and 93 deletions
+3 -1
View File
@@ -1,8 +1,9 @@
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="related--content">
<?php $this->related(6)->to($relatedPosts); ?>
<?php if ($relatedPosts->have()): ?>
<h3 class="related--posts__title">相关文章</h3>
<div class="post--single__related">
<?php $this->related(6)->to($relatedPosts); ?>
<?php while ($relatedPosts->next()): ?>
<div class="post--single__related__item">
<a href="<?php $relatedPosts->permalink(); ?>">
@@ -18,4 +19,5 @@
</div>
<?php endwhile; ?>
</div>
<?php endif; ?>
</div>