-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
34 lines (34 loc) · 948 Bytes
/
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
<?php
/**
* 一款超简单和速度飞快的主题。
*
* @package Simplicity
* @author iKirby
* @version 1.2
* @link https://ikirby.me
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<header>
<h1><a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a></h1>
</header>
<div class="content">
<div class="post">
<ul class="post-list">
<?php while($this->next()): ?>
<li class="post-item">
<a href="<?php $this->permalink(); ?>"><?php $this->title(); ?></a>
<span class="post-meta">
<span class="slash">/</span>
<time datetime="<?php $this->date('Y-m-d'); ?>"><?php $this->date('Y-m-d'); ?></time>
</span>
</li>
<?php endwhile; ?>
</ul>
</div>
<div class="pagenav">
<?php $this->pageLink('«上一页','prev'); ?><?php $this->pageLink('下一页»','next'); ?>
</div>
</div>
<?php $this->need('footer.php'); ?>