-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
58 lines (51 loc) · 1.8 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
50
51
52
53
54
55
56
57
58
<?php
/**
* Anghunk 是一款基于 Typecho 博客程序的主题,主打写作阅读体验,没有太过多余的色彩,简单而不失细节,已经进入 3.0 版本,作者博客 <a href="https://zburu.com" target="_blank">https://zburu.com</a>
* @package Anghunk
* @author 子舒
* @version 3.0
* @link https://zburu.com
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="main">
<?php $this->need('component/nav.php'); ?>
<main class="main-content">
<section class="post-list">
<?php while ($this->next()) : ?>
<?php if ($this->category != "cateslug") : ?>
<a href="<?php $this->permalink() ?>">
<div class="block-title">
<?php $options = Typecho_Widget::widget('Widget_Options');
if ($options->slt == '0') {
if (($this->fields->imgurl)) {
echo '<div class="article-img" style="background-image:url(' . $this->fields->imgurl . ')"></div>';
} else {
echo '';
}
} ?>
<?php $this->title() ?>
</div>
<div class="block-content"><?php $this->excerpt(80, '...'); ?></div>
<div class="posttime">
<span>发布于<?php $this->date('Y年m月d日'); ?></span>
<span class="post-tags"><?php $this->category(',', false); ?></span>
<!--<span class="post-tags">view: <?php get_post_view($this) ?></span>-->
<span class="post-tags"><?php $this->commentsNum(_t('无评论'), _t('1评论'), _t('%d评论')); ?></span>
</div>
</a>
<?php endif; ?>
<?php endwhile; ?>
</section>
<nav class="blog-nav">
<?php $this->pageLink('<span>上一页</span>'); ?>
<?php $this->pageLink('<span>下一页</span>', 'next'); ?>
</nav>
</main>
<div class="container">
<?php $this->need('component/footer.php'); ?>
</div>
</div>
</body>
</html>