forked from 1a57danc3/Azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
61 lines (60 loc) · 2.62 KB
/
index.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* 蔚蓝简洁的Typecho主题
*
* @package Azure
* @author Jimmy
* @version 1.3
* @link http://jimmycai.org
*/
$this->need('header.php');
?>
<div class="content grid-u-1 grid-u-med-3-4">
<div class="posts">
<h1 class="content-subhead">
<a href="<?php $this->options->siteUrl(); ?>">
主页
</a>
» 最新文章
</h1>
<?php while($this->next()): ?>
<article class="post" id="<?php $this->cid() ?>">
<?php if (isset($this->fields->Status)): ?>
<a href="<?php $this->permalink() ?>" title="<?php $this->date(); ?>">
<div class="post-content">
<blockquote>
<?php $this->excerpt(250, '......');?>
</blockquote>
</div>
</a>
<?php else: ?>
<header class="post-header">
<a href="<?php $this->permalink() ?>" class="post-title">
<?php $this->title() ?>
</a>
<p class="post-meta">
<span class="date">
<?php $this->date(); ?>
</span>
<span class="commentsnum">
<a href="<?php $this->permalink() ?>#comments">
<?php $this->commentsNum('快抢沙发', '沙发被抢', '%d 条评论'); ?>
</a>
</span>
</p>
</header>
<div class="post-content">
<p>
<?php $this->content(); ?>
</p>
</div>
<?php endif; ?>
</article>
<hr>
<?php endwhile; ?>
</div>
<div class="page-nav">
<?php $this->pageNav('上一页','下一页',10,'...');?>
</div>
<?php $this->need('footer.php'); ?>
</div>