-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.php
49 lines (48 loc) · 1.53 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
<?php
/**
* 这是一款小清新绿色Typecho主题。
* @package Sgreen Theme
* @author 一夜涕
* @version 3.0
* @link http://yiyeti.cc
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<content>
<div class="main">
<?php while($this->next()): ?>
<div class="article">
<div class="article-title"> <a href="<?php $this->permalink() ?>">
<?php $this->title() ?>
</a> </div>
<small class="article-time">
<?php _e('发表于:'); ?>
<time datetime="<?php $this->date('c'); ?>" itemprop="datePublished">
<?php $this->date('Y-m-d'); ?>
</time>
|
<?php _e('分类:'); ?>
<?php $this->category(','); ?>
| <a itemprop="discussionUrl" href="<?php $this->permalink() ?>#comments">
<?php $this->commentsNum('评论:0 ', '评论:1 ', '评论:%d '); ?>
</a> | 阅读:
<?php get_post_view($this) ?>
</small>
<div class="article-content">
<?php if ($this->options->Abstract == 'able'): ?>
<?php $this->excerpt(135, '...'); ?>
<?php endif; ?>
<?php if ($this->options->Abstract == 'disable'): ?>
<?php $this->content(''); ?>
<?php endif; ?>
<p class="readmore"><a href="<?php $this->permalink() ?>">阅读全文>></a></p>
</div>
</div>
<?php endwhile; ?>
<div class="page-url"> </div>
<div class="pagination">
<?php $this->pageNav('« ', ' »'); ?></div>
</div>
</content>
<?php $this->need('footer.php'); ?>