Fix a bug for navbar

This commit is contained in:
Skywt2003 2021-08-02 20:51:33 +08:00
parent 237956ca05
commit a349572b59
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@
</li>
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
<li class="nav-item">
<a class="nav-link nav-link-icon <?php if ($this->is('archive')){echo 'text-default';}else{echo 'text-gray';}?>" href="<?php echo '.'.$this->options->routingTable['archive']['url'] ?>">
<a class="nav-link nav-link-icon <?php if ($this->is('archive')){echo 'text-default';}else{echo 'text-gray';}?>" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
<i class="czs-read"></i> Passages
</a>
</li>

View File

@ -82,7 +82,7 @@ if (!defined('__TYPECHO_ROOT_DIR__')) exit;
</li>
<?php if (strpos($this->options->frontPage, 'file') !== FALSE) {?>
<li class="nav-item">
<a class="nav-link nav-link-icon text-grey" href="<?php echo '.'.$this->options->routingTable['archive']['url'] ?>">
<a class="nav-link nav-link-icon text-grey" href="<?php echo $this->options->siteUrl.$this->options->routingTable['archive']['url'] ?>">
<i class="czs-read"></i> Passages
</a>
</li>