代码如下

<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?>
<li>文章总数:<?php $stat->publishedPostsNum() ?>篇</li>
<li>分类总数:<?php $stat->categoriesNum() ?>个</li>
<li>评论总数:<?php $stat->publishedCommentsNum() ?>条</li>
<li>页面总数:<?php $stat->publishedPagesNum() ?>页</li>