diff options
| author | Jui-Ch'i Lau <21096362+KurococLiu@users.noreply.github.com> | 2023-03-18 11:32:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-18 11:32:25 +0800 |
| commit | 6be33d93e3c66364a808372c2d4d34cd745d1beb (patch) | |
| tree | 7d19c513dba3168a6b59a754fd614306387104db /includes | |
| parent | ce75d531299ea0f2a500d61586d2837bda0b31b5 (diff) | |
| parent | a9c3180ecdf84add5d6084a19c9c79eedc14af9b (diff) | |
Merge branch 'BigCoke233:main' into main
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/comments.php | 2 | ||||
| -rw-r--r-- | includes/header.php | 2 | ||||
| -rw-r--r-- | includes/sidebar.php | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/includes/comments.php b/includes/comments.php index 0790a9c..783f8c4 100644 --- a/includes/comments.php +++ b/includes/comments.php @@ -75,7 +75,7 @@ Comments::replyScript($this); ?> <?php $this->author->gravatar(32); ?> <div class="comments-profile-author"> <a class="comments-profile-name" href="<?php $this->options->profileUrl(); ?>"><?php $this->user->screenName(); ?></a><br> - <a class="comments-logout" href="<?php $this->options->logoutUrl(); ?>" title="Logout"><?php _e('退出'); ?></a> + <a class="comments-logout" href="<?php $this->options->logoutUrl(); ?>" title="Logout" no-pjax><?php _e('退出'); ?></a> </div> </div> <script>login=true;</script> diff --git a/includes/header.php b/includes/header.php index a74b47a..c1cf591 100644 --- a/includes/header.php +++ b/includes/header.php @@ -18,7 +18,7 @@ $this->need("includes/head.php"); ?> <div class="navbar-dropdown"> <button class="navbar-button navbar-dropup" id="nav-rise"><span>+</span></button> <h2>页面</h2> - <ul class="widget-list"><?php Matcha::pageNav($this, "li"); ?></ul> + <ul class="widget-list"><li><a href="<?php $this->options->siteUrl(); ?>" rel="section">首页</a></li><?php Matcha::pageNav($this, "li"); ?></ul> <h2>分类</h2> <ul class="widget-list widget-category"> <?php $this->widget('Widget_Metas_Category_List')->to($categories); ?> diff --git a/includes/sidebar.php b/includes/sidebar.php index 32df2e7..77109e9 100644 --- a/includes/sidebar.php +++ b/includes/sidebar.php @@ -3,7 +3,11 @@ <aside id="sidebar" class="sidebar" role="complementary"> <section class="widget widget-nav sidebar-nav"> <header id="header" class="header"><?php Matcha::siteName(); ?></header> - <ul class="widget-list"><?php Matcha::pageNav($this, "li"); ?></ul> + <ul class="widget-list"> + <li><a href="<?php $this->options->siteUrl(); ?>" rel="section">首页</a></li> + <?php Matcha::categoryNav($this, "li"); ?> + <?php Matcha::pageNav($this, "li"); ?> + </ul> </section> <!-- 版权信息 --> <section class="widget sidebar-foot"> |
