Skip to content

Commit

Permalink
fix: correct URL parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Dec 8, 2023
1 parent 6227bef commit 4cee395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/bootstrap/functions/url.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{{- else }}
{{- if hasPrefix $url "/" }}
{{- $url = relURL $url }}
{{- else }}
{{- $url = printf "%s%s" .Page.RelPermalink $url }}
{{- else if not (hasPrefix $url "#") }}
{{- $url = printf "%s%s" .Page.Permalink $url }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 4cee395

Please sign in to comment.