-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpost.php
51 lines (37 loc) · 1.18 KB
/
post.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
<?php
/**
* 这是 Typecho 0.9 系统的一套默认皮肤
*
* @package Typecho Replica Theme
* @author Typecho Team
* @version 1.2
* @link http://typecho.org
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<!-- Main -->
<div id="main">
<!-- Work -->
<section class="panel" style="display: block;">
<div class="col-mb-12 col-8">
<?php if ($this->have()): ?>
<?php while($this->next()): ?>
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
<header><h1><a itemtype="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
</header>
<div class="post-content" itemprop="articleBody">
<?php $this->content(); ?>
</div>
</article>
<?php endwhile; ?>
<?php else: ?>
<article class="post">
<h2 class="post-title"><?php _e('没有找到内容'); ?></h2>
</article>
<?php endif; ?>
</div><!-- end #main -->
</section>
<!-- Contact -->
</div>
<?php $this->need('footer.php'); ?>