-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.php
37 lines (34 loc) · 1.67 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
<?php
/**
* 这是一款极简主义的主题,蓝白基调,优雅大方。
*
* @package Typecho Minimalism Theme
* @author Warner
* @version beta
* @link https://github.com/WarnerYang
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('header.php');
?>
<div class="col-mb-12 col-8" id="main" role="main">
<?php while($this->next()): ?>
<article class="post shadow index" itemscope itemtype="http://schema.org/BlogPosting">
<h2 class="post-title" itemprop="name headline">
<a itemtype="url" href="<?php $this->permalink() ?>"><?php $this->sticky();$this->title() ?></a>
</h2>
<div class="post-content" itemprop="articleBody">
<?php $this->excerpt(160,'...'); ?>
</div>
<ul class="post-meta">
<!-- <li itemprop="author" itemscope itemtype="http://schema.org/Person"><?php _e('作者: '); ?><a itemprop="name" href="<?php $this->author->permalink(); ?>" rel="author"><?php $this->author(); ?></a></li> -->
<li><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date('Y-m-d'); ?></time></li>
<?php if(isset($this->options->plugins['activated']['Views'])) _e('<li>').Views_Plugin::theViews(). _e('</li>'); ?>
<li itemprop="interactionCount"><a itemprop="discussionUrl" href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('评论', '1 条评论', '%d 条评论'); ?></a></li>
<li><a itemtype="url" href="<?php $this->permalink() ?>">阅读全文</a></li>
</ul>
</article>
<?php endwhile; ?>
<?php $this->pageNav('上一页', '下一页'); ?>
</div><!-- end #main-->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>