-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
48 lines (45 loc) · 1.32 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
<?php
/**
* 超简洁typecho皮肤,主题来自@imzoke,移植至typecho
*
* @package Greenray
* @author imzoke & ihewro
* @version 1.1.4
* @link http://www.ihewro.com/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div id="container" class="container">
<!--sidebar-->
<?php $this->need('sidebar.php'); ?>
<div id="pjax-container">
<div id="primary" class="content-area">
<?php while($this->next()): ?>
<article class="article">
<header class="header">
<h2 class="title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2>
<div class="meta">
<span class="date">Posted on <time datetime="<?php $this->date('c'); ?>"><?php $this->date('F j, Y'); ?></time></span>
</div>
</header>
<div class="content">
<?php $this->content('Keep reading...'); ?>
</div>
</article>
<?php endwhile; ?>
<nav id="page-nav" class="page-nav">
<div class="nav-links">
<div class="nav-previous">
<?php $this->pageLink('<span class="nav-meta">←</span> Older posts','next');?>
</div>
<div class="nav-next">
<?php $this->pageLink('Newer posts <span class="nav-meta">→</span>','prev');?>
</div>
</div>
</nav>
</div>
</div>
</div>
<!--footer-->
<?php $this->need('footer.php'); ?>