Merge pull request #66 from 2xiao/master

fix: 修复baseurl为xx/xx时跳转错误的bug
This commit is contained in:
MeiK
2021-03-17 10:28:17 +08:00
committed by GitHub
3 changed files with 10 additions and 10 deletions

View File

@@ -19,8 +19,8 @@
</svg>
Overview
</a>
<a class="UnderlineNav-item {{ if .IsSection }} selected {{ end }}{{ if eq .Type "tags" }} selected {{ end }}"
href="/post/">
<a class="UnderlineNav-item {{ if .IsSection }} selected {{ end }}{{ if eq .Type " tags" }} selected {{ end
}}" href="{{ .Site.BaseURL }}/post/">
<svg class="octicon octicon-repo UnderlineNav-octicon hide-sm" height="16" viewBox="0 0 16 16"
version="1.1" width="16">
<path fill-rule="evenodd"

View File

@@ -13,7 +13,7 @@
Overview
</a>
<a class='UnderlineNav-item {{ if .IsSection }} selected {{ end }}{{ if eq .Type "tags" }} selected {{ end }}'
href="/post/">
href="{{ .Site.BaseURL }}/post/">
<svg class="octicon octicon-repo UnderlineNav-octicon hide-sm" height="16" viewBox="0 0 16 16" version="1.1"
width="16">
<path fill-rule="evenodd"

View File

@@ -10,7 +10,7 @@
for <strong>{{ .Params.title }}</strong>
</div>
<div class="TableObject-item text-right v-align-top">
<a class="issues-reset-query text-normal d-inline-block ml-3" href="/post/">
<a class="issues-reset-query text-normal d-inline-block ml-3" href="{{ .Site.BaseURL }}/post/">
<svg class="octicon octicon-x issues-reset-query-icon mt-1" viewBox="0 0 16 16" version="1.1" width="16"
height="16">
<path fill-rule="evenodd"