Skip to content

Commit 20a5c48

Browse files
authored
Merge pull request #7 from Zhangzijing/patch-1
"首页"链接跳转优化
2 parents 7c4fbf5 + a4deec4 commit 20a5c48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

header.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</head>
2828
<body>
2929
<div class="wrapper">
30-
<header><a href="/" class="logo"><?php if($this->options->logoUrl): ?><img src="<?php $this->options->logoUrl();?>" alt="<?php $this->options->title() ?>" /><?php else : ?><img src="<?php $this->options->themeUrl('css/pic.png'); ?>"/><?php endif; ?></a>
30+
<header><a href="<?php $this->options->siteUrl();?>" class="logo"><?php if($this->options->logoUrl): ?><img src="<?php $this->options->logoUrl();?>" alt="<?php $this->options->title() ?>" /><?php else : ?><img src="<?php $this->options->themeUrl('css/pic.png'); ?>"/><?php endif; ?></a>
3131
<div class="description">
3232
<h1><?php $this->options->title(); ?></h1>
3333
<h2><?php $this->options->description() ?></h2>
@@ -36,7 +36,7 @@
3636
<div class="bitcron_nav">
3737
<div class="mixed_site_nav_wrap site_nav_wrap">
3838
<ul class="mixed_site_nav site_nav sm sm-base">
39-
<li><a href="/" class="selected active current nav__item">首页</a></li>
39+
<li><a href="<?php $this->options->siteUrl();?>" class="selected active current nav__item">首页</a></li>
4040
<?php $this->widget('Widget_Contents_Page_List')->parse('<li><a href="{permalink}" class="nav__item">{title}</a></li>'); ?>
4141
<li><a href="<?php $this->options->feedUrl(); ?>" class=" nav__item">订阅</a></li>
4242
</ul>
@@ -49,4 +49,4 @@
4949
</div>
5050
</nav>
5151
</div>
52-
</header>
52+
</header>

0 commit comments

Comments
 (0)