-
Notifications
You must be signed in to change notification settings - Fork 7
/
archive.php
44 lines (36 loc) · 1.46 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="main">
<div class="container">
<div class="post-wrap tags">
<h2 class="post-title"><?php $this->archiveTitle(array(
'category' => _t('- Category · %s -'),
'search' => _t('- Key · %s -'),
'tag' => _t('- Tag · %s -'),
'author' => _t('%s 发布的文章')
), '', ''); ?></h2>
</div>
<div class="post-wrap archive">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<article class="archive-item">
<a class="archive-item-link" href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
<span class="archive-item-date">
<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished">
<?php $this->date(); ?>
</time>
</span>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="post">
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
</article>
<?php endif; ?>
<?php $this->pageNav('« 前一页', '后一页 »'); ?>
<!-- <h3>2019</h3> -->
</div>
</div>
</div>
<!-- end #main -->
<?php $this->need('footer.php'); ?>