-
Notifications
You must be signed in to change notification settings - Fork 2
/
archive.php
39 lines (36 loc) · 1.42 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="section columns is-centered">
<div class="column is-two-fifths">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<article class="article">
<a href="<?php $this->permalink() ?>">
<section class="header">
<?php $this->title() ?>
</section>
</a>
<section class="content">
<?php $this->content('阅读文章的剩余部分') ?>
</section>
</article>
<?php endwhile; ?>
<?php else: ?>
<div class="notification">
没有找到内容,请重试
</div>
<?php endif; ?>
<div class="pagination is-centered" style="margin-top: 1em;">
<?php $this->pageNav('上一页', '下一页', 3, '...', [
'wrapTag' => 'ul',
'wrapClass' => 'pagination-list',
'itemTag' => 'li class="pagination-link"',
'textTag' => 'a',
'currentClass' => 'current',
'prevClass' => 'pagination-previous',
'nextClass' => 'pagination-next'
]); ?>
</div>
</div>
</div>
<?php $this->need('footer.php'); ?>