summaryrefslogtreecommitdiffstats
path: root/pagefile.php
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2020-07-11 09:32:16 +0800
committerBigCoke233 <hi@guhub.cn>2020-07-11 09:32:16 +0800
commit4817b6ffa38af8b269e4ad91591d70c032dd8e5d (patch)
tree028633c00df80fb806335bf6745150818afca5be /pagefile.php
parentfdb60d77b1b68c9326b08a8ece770af3ac168877 (diff)
:zap: Perf: 优化归档页面 meta 元信息 #64
Diffstat (limited to 'pagefile.php')
-rw-r--r--pagefile.php7
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>