-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
48 lines (47 loc) · 1.61 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
/**
* 移植Yilia主题到Typecho
*
* @package Yilia
* @author Litten
* @version 0.1
* @link http://litten.github.io/
*/
$this->need('header.php');
?>
<div class="body-wrap">
<?php while($this->next()):?>
<article class="article article-type-post" data-thread-key="<?php echo $this->cid;?>" itemscope itemprop="blogPost">
<div class="article-meta">
<a href="<?php $this->permalink() ?>" class="article-date">
<time datetime="<?php $this->date('Y-m-d\TH:i:s.000\Z'); ?>" itemprop="datePublished"><?php $this->date('M j');?></time>
</a>
</div>
<div class="article-inner">
<input type="hidden" class="isFancy" />
<header class="article-header">
<h1 itemprop="name">
<a class="article-title" href="<?php $this->permalink(); ?>"><?php $this->title() ?></a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<?php $this->content(''); ?>
</div>
<div class="article-info article-info-index">
<div class="article-tag tagcloud">
<?php echo yqctags($this);?>
</div>
<div class="article-category tagcloud">
<?php $this->category(""); ?>
</div>
<p class="article-more-link">
<a href="<?php $this->permalink();?>#more">更多内容>></a>
</p>
<div class="clearfix"></div>
</div>
</div>
</article>
<?php endwhile; ?>
<?php $this->pageNav('« 上一页','下一页 »',1,'...'); ?>
</div>
<?php $this->need('footer.php');?>