zblog列表页面标题及文章数量

日期:2025-05-25浏览:0 编辑

主要用户各种列表页面显示 xx分类/标签下有xx篇文章

{if $type == 'index'}
<h2>最新文章</h2>
{else}
<h2>
{if $type == 'category'}
找到<span>{$category.Count}</span>篇与
{elseif  $type == 'tag'}
找到<span>{$tag.Count}</span>篇与
{elseif  $type == 'author'}
找到<span>{$author.Articles}</span>篇与
{/if}
<span>{$title}</span> 相关的结果</h2>
{/if}

如有更好的方式欢迎评论区补充哈!