diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-13 14:21:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-13 14:21:11 +0800 |
| commit | f8cefbddee3b1005d7af569e4fc89c3f6059c008 (patch) | |
| tree | 8d731045d1be526ddafdf24e2cb2369f4a8b2c84 /archive.php | |
| parent | 31e5c29c1a030d8f8d169b81386e659c1e2fb11f (diff) | |
init
Diffstat (limited to 'archive.php')
| -rw-r--r-- | archive.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..7018e28 --- /dev/null +++ b/archive.php @@ -0,0 +1,34 @@ +<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> +<?php $this->need('header.php'); ?> + + <div class="col-12" id="main" role="main"> + <h3 class="archive-title"><?php $this->archiveTitle(array( + 'category' => _t('分类 %s 下的文章'), + 'search' => _t('包含关键字 %s 的文章'), + 'tag' => _t('标签 %s 下的文章'), + 'author' => _t('%s 发布的文章') + ), '', ''); ?></h3> + <?php if ($this->have()): ?> + <?php while($this->next()): ?> + <article class="post post-atmain" itemscope itemtype="http://schema.org/BlogPosting"> + <h2 class="post-title" itemprop="name headline"><a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2> + <ul class="post-meta"> + <li><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li> + <li><?php $this->category(','); ?></li> + <li itemprop="interactionCount"><a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('0 comment', '1 comment', '%d comments'); ?></a></li> + </ul> + <div class="post-content" itemprop="articleBody"> + <?php $this->content('READ MORE'); ?> + </div> + </article> + <?php endwhile; ?> + <?php else: ?> + <article class="post"> + <h2 class="post-title"><?php _e('没有找到内容'); ?></h2> + </article> + <?php endif; ?> + + <?php $this->pageNav('«', '»'); ?> + </div><!-- end #main --> + + <?php $this->need('footer.php'); ?>
\ No newline at end of file |
