summaryrefslogtreecommitdiffstats
path: root/archive.php
blob: c9cbf6cad6a1a63a0c568989b03a1994a92f6475 (plain)
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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/head.php');
$this->need('includes/header.php');
?>
    <main class="main-container container">
	  <div class="post-body">
	    <div class="post-content">
		  <h2 class="archive-title"><?php $this->archiveTitle(array(
            'category'  =>  _t('分类 %s 下的文章'),
            'search'    =>  _t('包含关键字 %s 的文章'),
            'tag'       =>  _t('标签 %s 下的文章'),
            'author'    =>  _t('%s 发布的文章')
        ), '', ''); ?></h2>
		  <?php if ($this->have()): ?>
		  <br>
          <?php else: ?>
          <p style="text-align:center">居然没有找到相关内容</p>
          <?php endif; ?>
		  <?php while($this->next()): ?>
		  <a href="<?php $this->permalink(); ?>" class="post-link archive-item">
		    <h3 class="archive-item-title"><?php $this->title(); ?></h3>
			<p class="archive-item-excerpt"><?php $this->excerpt(); ?></p>
		  </a>
		  <br>
		  <?php endwhile; ?>
		  <div class="archive-pagenav">
            <?php $this->pageNav('«', '»'); ?>
		  </div>
		</div>
	  </div>
	</main>
	<!-- 防止找不到 owo 容器而报错 -->
	<div style="display:none" class="OwO"></div>

<?php $this->need('includes/footer.php'); ?>