forked from White-NX/Briefness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
39 lines (35 loc) · 1.15 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
<?php
/**
*
* 一款简约的单栏 Typecho 主题,极致简洁的风格
* 开发维护来自小俊
* 感谢支持~~~~
*
*
* @package Beiefness
* @author 小俊
* @version 1.3.0
* @link https://www.xjisme.com/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<?php while($this->next()): ?>
<h1 class="center"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
<p class="center"><?php $this->date('Y 年 n 月 j 日'); ?></p>
<p><?php $this->excerpt(70, '...'); ?></p>
<hr>
</br>
<?php endwhile; ?>
<ul class="pager">
<li class="previous"><?php $this->pageLink('上一页','prev'); ?></li>
<li class="next"><?php $this->pageLink('下一页','next'); ?></li>
</ul>
<ul class="pager">
<?php Typecho_Widget::widget('Widget_Stat')->to($stat); ?>
<li>文章总数:<?php $stat->publishedPostsNum() ?>篇</li>
<li>分类总数:<?php $stat->categoriesNum() ?>个</li>
<li>评论总数:<?php $stat->publishedCommentsNum() ?>条</li>
<li>页面总数:<?php $stat->publishedPagesNum() ?>个</li>
</ul>
<?php $this->need('footer.php'); ?>