-
Notifications
You must be signed in to change notification settings - Fork 12
/
archive.php
36 lines (33 loc) · 1.2 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<div class="body-layout">
<div class="index-header" style="background:url(<?php $this->options->themeUrl('images/index-header-default-bg.jpg'); ?>);background-size:100% 100%;background-repeat:no-repeat;"></div>
<div class="index-container">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<div class="index-post-layout">
<article class="index-post-abstract">
<header>
<h2><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<time datetime="<?php $this->date('c'); ?>"> <?php $this->date('F j, Y'); ?></time>
</header>
<section>
<?php $this->excerpt(130, ' ...'); ?>
</section>
</article>
</div>
<?php endwhile; ?>
<?php else: ?>
<div class="index-post-layout">
<article class="index-post-abstract">
<section>
<p style="text-align: center;font-size: 30px;font-weight: 200;">没有你要找的内容</p>
</section>
</article>
</div>
<?php endif; ?>
<?php $this->need('navigator.php'); ?>
</div>
<?php $this->need('page-footer.php'); ?>
</div>
<?php $this->need('footer.php'); ?>