diff options
| author | 阔落 <45323514+BigCoke233@users.noreply.github.com> | 2019-04-06 16:48:17 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-06 16:48:17 +0800 |
| commit | bf183e944f0cbb924b73c84d2c8cdb7b59d35eb1 (patch) | |
| tree | f6530294df83ec1991b92c5c8dfa64b224b34e34 /includes/header.php | |
| parent | 43156f86f3e167f066e1a655baee71eaebbdad4b (diff) | |
修复无法评论问题,现在具有data-pjax特性的元素才能使pjax响应
Diffstat (limited to 'includes/header.php')
| -rw-r--r-- | includes/header.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/header.php b/includes/header.php index 03837f3..f8fdedc 100644 --- a/includes/header.php +++ b/includes/header.php @@ -18,8 +18,8 @@ <?php $this->options->custom_nav() ?>
<?php else: ?>
<?php $this->widget('Widget_Contents_Page_List')
- ->parse('<li><a href="{permalink}"><i class="fa fa-paper-plane" aria-hidden="true"></i> {title}</a></li>'); ?>
- <li><a href="<?php $this->options->SiteUrl(); ?>"><i class="fa fa-home" aria-hidden="true"></i> 首页</a></li>
+ ->parse('<li><a href="{permalink}" data-pjax><i class="fa fa-paper-plane" aria-hidden="true"></i> {title}</a></li>'); ?>
+ <li><a data-pjax href="<?php $this->options->SiteUrl(); ?>"><i class="fa fa-home" aria-hidden="true"></i> 首页</a></li>
<?php endif; ?>
</ul>
</div>
|
