diff options
Diffstat (limited to 'pagefile.php')
| -rw-r--r-- | pagefile.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pagefile.php b/pagefile.php index 4c03844..a24d2bb 100644 --- a/pagefile.php +++ b/pagefile.php @@ -6,6 +6,7 @@ */
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
$this->need('includes/head.php');
+$_SESSION["isPageArchive"] = true; //归档页面标识
$this->need('includes/header.php');
?>
<main class="main-container container" role="main">
@@ -22,8 +23,7 @@ $this->need('includes/header.php'); <?php endif; ?>
<br />
<h2>文章归档</h2>
- <ul class="archives-list">
- <?php
+ <ul class="archives-list"><?php
$archives = Contents::archives($this);
$number = 0;
foreach($archives as $year => $posts) {
@@ -38,8 +38,7 @@ $this->need('includes/header.php'); }
echo '</details>';
$number++;
- }
- ?>
+ }?>
</ul>
</div>
</div>
|
