forked from pagecho/maupassant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
38 lines (38 loc) · 1.23 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
<?php
/**
* 简单的响应式模板
*
* @package Maupassant
* @author cho
* @version 1.3
* @link https://github.com/pickcho/maupassant
*/
$this->need('header.php');
?>
<div class="col-8" id="main">
<div class="res-cons">
<?php while($this->next()): ?>
<article class="post">
<header>
<h2 class="post-title">
<a href="<?php $this->permalink() ?>"><?php $this->title() ?></a>
</h2>
</header>
<div class="post-meta">
<time datetime="<?php $this->date('c'); ?>;">
<?php $this->date(); ?>;
</time>
<div class="post-category">
归类于 <?php $this->category(', '); ?>;
</div>
</div>
<div class="post-content">
<?php $this->content('阅读全文...'); ?>
</div>
</article>
<?php endwhile; ?>
<?php $this->pageNav('« 上一页','下一页 »',10,'...');?>
</div>
</div>
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>