diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 21:37:55 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2022-08-21 21:37:55 +0800 |
| commit | 5977636a5fc5b4fed253b4138b3f2d83377e6457 (patch) | |
| tree | 5b79a1c09ab3028daf16a774a922939fe69a01e8 /archive.php | |
| parent | 8c76f980f0f8bf169de18b32fa863fd294ff7ec2 (diff) | |
:apple: Add: 将「更人性化的时间」运用在文章时间显示上
Diffstat (limited to 'archive.php')
| -rw-r--r-- | archive.php | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/archive.php b/archive.php index 66e2da8..f509d6d 100644 --- a/archive.php +++ b/archive.php @@ -1,34 +1,4 @@ <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?> -<?php $this->need('includes/header.php'); ?> - - <div class="col-12" id="main" role="main"> - <h3 class="archive-title"><?php $this->archiveTitle(array( - 'category' => _t('分类 %s 下的文章'), - 'search' => _t('包含关键字 %s 的文章'), - 'tag' => _t('标签 %s 下的文章'), - 'author' => _t('%s 发布的文章') - ), '', ''); ?></h3> - <?php if ($this->have()): ?> - <?php while($this->next()): ?> - <article class="post post-atmain" itemscope itemtype="http://schema.org/BlogPosting"> - <h2 class="post-title" itemprop="name headline"><a itemprop="url" href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h2> - <ul class="post-meta"> - <li><time datetime="<?php $this->date('c'); ?>" itemprop="datePublished"><?php $this->date(); ?></time></li> - <li><?php $this->category(','); ?></li> - <li itemprop="interactionCount"><a href="<?php $this->permalink() ?>#comments"><?php $this->commentsNum('0 comment', '1 comment', '%d comments'); ?></a></li> - </ul> - <div class="post-content" itemprop="articleBody"> - <?php $this->content(); ?> - </div> - </article> - <?php endwhile; ?> - <?php else: ?> - <article class="post"> - <h2 class="post-title"><?php _e('没有找到内容'); ?></h2> - </article> - <?php endif; ?> - - <?php $this->pageNav('«', '»'); ?> - </div><!-- end #main --> - - <?php $this->need('includes/footer.php'); ?>
\ No newline at end of file +<?php $this->need('includes/header.php'); +$this->need('includes/post-list.php'); +$this->need('includes/footer.php'); ?>
\ No newline at end of file |
