Merge pull request #151 from nelvko/master

fix: use hugo 's api instead of static to  splice url
This commit is contained in:
MeiK
2024-09-30 10:15:11 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
</svg>
Overview
</a>
<a class="UnderlineNav-item {{ if .IsSection }} selected {{ end }}{{ if eq .Type " tags" }} selected {{ end }}" href="{{ .Site.BaseURL }}/post/">
<a class="UnderlineNav-item {{ if .IsSection }} selected {{ end }}{{ if eq .Type " tags" }} selected {{ end }}" href="{{urls.JoinPath .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="{{ .Site.BaseURL }}/post/">
href="{{urls.JoinPath .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"