This repository has been archived by the owner on Jun 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathindex.php
70 lines (62 loc) · 2.4 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
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* 移植Hexo主题Next.Mist
*
* @package Next.Mist
* @author zgq354
* @version 1.2.6
* @link http://blog.izgq.net/archives/444/
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<main id="main" class="main">
<div class="main-inner">
<div id="content" class="content">
<section id="posts" class="posts-expand">
<?php while($this->next()): ?>
<article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h1 class="post-title" itemprop="name headline">
<a class="post-title-link" href="<?php $this->permalink() ?>" itemprop="url">
<?php $this->title() ?>
</a>
</h1>
<div class="post-meta">
<span class="post-time">
发表于
<time itemprop="dateCreated" datetime="<?php $this->date('c'); ?>" content="<?php $this->date('yy-m-d'); ?>">
<?php $this->date('Y-m-d'); ?>
</time>
</span>
<span class="post-category" >
| 分类于
<span itemprop="about" itemscope itemtype="https://schema.org/Thing">
<?php $this->category(' , '); ?>
</span>
</span>
<span class="post-comments-count">
|
<?php if(!empty($this->options->next_comments)): ?>
<a rel="nofollow" href="<?php $this->permalink() ?>#comments"><span class="ds-thread-count" data-thread-key="<?php echo $this->cid;?>" data-count-type="comments"></span></a>
<?php else: ?>
<a rel="nofollow" href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('暂无评论', '1 条评论', '%d 条评论'); ?></a>
<?php endif; ?>
</span>
</div>
</header>
<div class="post-body">
<?php $this->content('阅读全文 »'); ?>
</div>
<footer class="post-footer">
<div class="post-eof"></div>
</footer>
</article>
<?php endwhile; ?>
</section>
<?php $this->pageNav('« ', ' »',5,'...',array('wrapTag' => 'nav','wrapClass' =>'pagination','itemTag'=>'','prevClass' => 'extend prev', 'nextClass' => 'extend next', 'currentClass' => 'page-number current')); ?>
</div>
</div>
<?php $this->need('sidebar.php'); ?>
</main>
<?php $this->need('footer.php'); ?>