49 lines
1.5 KiB
PHP
49 lines
1.5 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* SANGUSHUI.COM
|
||
|
|
*
|
||
|
|
* @package SANGUSHUI
|
||
|
|
* @author sangushui
|
||
|
|
* @version 1.0
|
||
|
|
* @link https://www.sangushui.com/
|
||
|
|
*/
|
||
|
|
|
||
|
|
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
|
||
|
|
$this->need('header.php');
|
||
|
|
?>
|
||
|
|
|
||
|
|
<main class="container">
|
||
|
|
<div class="container-thin">
|
||
|
|
<!--<?php if (!($this->is('index')) && !($this->is('post'))): ?>
|
||
|
|
<h6 class="text-center text-muted">
|
||
|
|
<?php $this->archiveTitle([
|
||
|
|
'category' => _t('分类 %s 下的文章'),
|
||
|
|
'search' => _t('包含关键字 %s 的文章'),
|
||
|
|
'tag' => _t('标签 %s 下的文章'),
|
||
|
|
'author' => _t('%s 发布的文章')
|
||
|
|
], '', ''); ?>
|
||
|
|
</h6>
|
||
|
|
<?php endif; ?>-->
|
||
|
|
|
||
|
|
<?php while ($this->next()): ?>
|
||
|
|
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
||
|
|
<?php postMeta($this); ?>
|
||
|
|
|
||
|
|
<div class="entry-content fmt" itemprop="articleBody">
|
||
|
|
<?php
|
||
|
|
// 直接使用 content() 方法的摘要模式
|
||
|
|
$this->excerpt(200, '...');
|
||
|
|
?>
|
||
|
|
<p><a href="<?php $this->permalink(); ?>" class="more-link"><?php _e('< 阅读全文 >'); ?></a></p>
|
||
|
|
</div>
|
||
|
|
</article>
|
||
|
|
<hr class="post-separator">
|
||
|
|
<?php endwhile; ?>
|
||
|
|
|
||
|
|
<nav><?php $this->pageNav(_t('前一页'), _t('后一页'), 2, '...', array('wrapTag' => 'ul', 'itemTag' => 'li')); ?></nav>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
</main>
|
||
|
|
|
||
|
|
<?php $this->need('footer.php'); ?>
|