You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

43 lines
1.9 KiB

<?php if(!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this -> need('header.php'); ?>
<main>
<div class="wrap min">
<section class="home-title">
<h1><?php $this -> archiveTitle(array(
'category' => _t('“%s”'),
'search' => _t('含关键词“%s”的文章'),
'tag' => _t('含标签“%s”的文章'),
'author' => _t('“%s”发布的文章')
), ""); ?></h1>
<?php if($this -> is('category')): ?><span><?php echo $this -> getDescription() ?><?php endif; ?>
</section>
<section class="home-posts">
<?php if($this -> have()): ?>
<?php while($this -> next()): ?>
<div class="post-item">
<h2><a href="<?php $this -> permalink(); ?>"><?php $this -> title(); ?></a></h2>
<p><?php $this -> excerpt(100); ?></p>
<div class="post-meta">
<time class="date"><?php $this -> date(); ?></time>
<?php if(!empty($this -> options -> archive_meta) && in_array('show_category', $this -> options -> archive_meta)): ?>
<span class="category"><?php $this -> category(','); ?></span>
<?php endif; ?>
<?php if(!empty($this -> options -> archive_meta) && in_array('show_tags', $this -> options -> archive_meta)): ?>
<span class="tags"><?php $this -> tags(',', true, '暂无'); ?></span>
<?php endif; ?>
<?php if(!empty($this -> options -> archive_meta) && in_array('show_comments', $this -> options -> archive_meta)): ?>
<span class="comments"><?php $this -> commentsNum('%d °C'); ?></span>
<?php endif; ?>
</div>
</div>
<?php endwhile; ?>
<?php else: ?>
<p>没有找到结果 (QWQ)</p>
<?php endif; ?>
</section>
<?php $this -> pageNav('&laquo;', '&raquo;'); ?>
</div>
</main>
<?php $this -> need('footer.php'); ?>