浮生六记

<?php
$this->widget('Widget_Archive@index', 'pageSize=6&type=category', 'mid=3')->to($list);
while($list->next()):
?>

    <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
        <h2 class="post-title" itemprop="name headline"><a itemprop="url" href="<?php $list->permalink() ?>"><?php $list->title() ?></a></h2>
        <ul class="post-meta">
            <li itemprop="author" itemscope itemtype="http://schema.org/Person"><?php _e('作者: '); ?><a itemprop="name" href="<?php $list->author->permalink(); ?>" rel="author"><?php $list->author(); ?></a></li>
            <li><?php _e('时间: '); ?> <time datetime="<?php $list->date('c'); ?>" itemprop="datePublished"><?php $list->date(); ?></time></li>
            <li><?php _e('分类: '); ?><?php $list->category(','); ?></li>
            <li itemprop="interactionCount"><a itemprop="discussionUrl" href="<?php $list->permalink() ?>#comments"><?php $list->commentsNum('评论', '1 条评论', '%d 条评论'); ?></a> 浏览量:<?php Views_Plugin::theViews(); ?> 文章字数:<?php $list->charactersNum(); ?></li>
        </ul>
        <div class="post-content" itemprop="articleBody">
            <?php $list->content('- 阅读剩余部分 -'); ?>
        </div>
    </article>

<?php
endwhile;
?>

添加新评论