-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
25 lines (25 loc) · 1.19 KB
/
archive.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="article-list">
<div class="main-title"><?php $this->archiveTitle([
'category' => _t('分类 <b>%s</b> 下的文章'),
'search' => _t('包含关键字 <b>%s</b> 的文章'),
'tag' => _t('标签 <b>%s</b> 下的文章'),
'author' => _t('<b>%s</b> 发布的文章')
], '', ''); ?></div>
<?php while ($this->next()) : ?>
<div class="article active">
<a class="title" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
<div class="meta">
<div class="time me-20"><?php $this->date(); ?></div>
<div class="type me-20"><?php $this->category(','); ?></div>
</div>
<div class="content markdown-body">
<?php $this->content(); ?>
</div>
</div>
<?php endwhile ?>
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
</div>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>