need('header.php'); ?>
is('index') ? 'h2' : 'h1'; // 归档类型和标题 $archive_type = ''; $archive_title = ''; $archive_description = ''; // 设置归档标题和描述 if ($this->is('category')) { $archive_type = '分类'; $archive_title = $this->category; $archive_description = $this->getDescription(); } elseif ($this->is('tag')) { $archive_type = '标签'; $archive_title = $this->archiveTitle(array('tag' => _t('标签 %s 下的文章')), '', ''); } elseif ($this->is('author')) { $archive_type = '作者'; $archive_title = $this->archiveTitle(array('author' => _t('%s 发布的文章')), '', ''); } elseif ($this->is('search')) { $archive_type = '搜索'; $archive_title = $this->archiveTitle(array('search' => _t('包含关键字 %s 的文章')), '', ''); } elseif ($this->is('archive')) { $archive_title = $this->archiveTitle(array( 'category' => _t('分类 %s 下的文章'), 'search' => _t('包含关键字 %s 的文章'), 'tag' => _t('标签 %s 下的文章'), 'author' => _t('%s 发布的文章') ), '', ''); } if ($archive_title || $archive_description) : ?>

< class="page-title">>
is('search') && !$this->have()) : ?>
have()): ?>
next()): // 获取当前文章的年份 $current_year = date('Y', $this->created); // 如果年份与之前不同,需要新的包装器 if ($current_year != $old_year) : // 如果是有效年份,而不是我们在循环前添加的默认值,我们有一个需要关闭的开放包装器 if (1 != $old_year) { echo ''; } // 包装新的年份 echo '
    '; if (!$this->is('date')) : ?>
  • is('sticky') ? '
    ' : ''; ?>

    title(); ?>

    options->themeConfig('DateFormat') ? $this->options->themeConfig('DateFormat') : 'n月j日'; // 格式化日期 $date = date($date_format, $this->created); // 输出日期 echo '' . $date . ''; ?>

need('pagination.php'); ?> need('footer.php'); ?>