增加判断是否在文章页面显示作者信息

This commit is contained in:
浪子
2024-05-17 18:42:35 +08:00
parent 965dd0fc7f
commit b221c3d9ab
9 changed files with 12 additions and 27 deletions
-4
View File
@@ -12,9 +12,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php Typecho_Widget::widget('Widget_Stat')->to($quantity); ?>
<h2 class="archive--title__year">共包含 <?php $quantity->publishedPostsNum(); ?> 篇文章</h2>
</header>
<div data-target="<?php $this->options->postLinkOpen(); ?>" class="page--archive" >
<?php
$stat = Typecho_Widget::widget('Widget_Stat');
Typecho_Widget::widget('Widget_Contents_Post_Recent', 'pageSize=' . $stat->publishedPostsNum)->to($archives);
@@ -44,8 +42,6 @@ $output .= '<li class="archive--item"><div class="archive--title"><a href="' . $
$output .= ' </ul></div></div>';
echo $output;?>
</div>
</main>
<?php $this->need('footer.php'); ?>