-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
45 lines (40 loc) · 1.24 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
<?php
/**
* 变色龙主题
*
* @package Anole Theme
* @author Leonard Woo
* @version 1.3
* @link https://github.com/leonardwoo/Anole
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<main class="container mx-auto posts" role="main">
<?php while($this->next()): ?>
<article class="post" itemscope>
<p class="post_title" itemprop="name headline"><a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></p>
<?php /*
<div class="post_meta">
<span itemprop="author" itemscope>作者: <a href="<?php $this->author->permalink(); ?>"><?php $this->author(); ?></a></span> |
<span>日期: <time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time>.</span> |
<span itemprop="interactionCount"><?php $this->commentsNum( '%d 条评论' ); ?>.</span>
</div>
<div class="post_content" itemprop="articleBody">
<?php $this->content('继续阅读...'); ?>
</div>
*/ ?>
</article>
<?php endwhile; ?>
</main>
<section class="page_box">
<?php $this->pageNav(); ?>
</section>
<section class="sidebar_box">
<div class="container mx-auto sidebar">
<?php $this->need('sidebar.php'); ?>
</div>
</section>
<?php
$this->need('footer.php');
?>