diff --git a/web/_common.php b/web/_common.php index 14bd84a..6359622 100644 --- a/web/_common.php +++ b/web/_common.php @@ -8,8 +8,8 @@ define('PMM_VERSION', '0.3.6'); function pmm_nav_links(string $active): string { $items = [ - 'home' => ['index.php', '首页'], - 'docs' => ['docs/index.php', '文档'], + 'home' => ['/index.php', '首页'], + 'docs' => ['/docs/index.php', '文档'], ]; $html = ''; foreach ($items as $key => [$href, $label]) { @@ -43,13 +43,13 @@ function pmm_header(string $active, string $title): void { '' . "\n" . '' . $t . ' · ParlzPackageManager' . "\n" . '' . "\n" . -'' . "\n" . -'' . "\n" . -'' . "\n" . +'' . "\n" . +'' . "\n" . +'' . "\n" . '' . "\n" . '' . "\n" . '