mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 06:22:03 +08:00
version: fix slashes in url #1050
This commit is contained in:
parent
7a2667a7d3
commit
b5f8bcc4e3
@ -110,13 +110,13 @@
|
||||
{{- end }}
|
||||
{{- with (where $versions "isLatest" true | first 1) }}
|
||||
{{- range . }}
|
||||
{{- $versionIndexUrl = path.Join .baseURL $versionIndexUrl }}
|
||||
{{- $versionIndexUrl = print .baseURL "/" $versionIndexUrl }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $home_path := site.Home.RelPermalink }}
|
||||
{{- $this_path := .RelPermalink }}
|
||||
{{- $path := (strings.TrimPrefix $home_path $this_path) | default "/" }}
|
||||
{{- $path := print "/" (strings.TrimPrefix $home_path $this_path) }}
|
||||
{{- $path = partial "permalink.gotmpl" (dict "link" $path) }}
|
||||
{{- $default_home_lang_path := site.Sites.Default.Home.Permalink }}
|
||||
{{- $this_home_lang_path := site.Home.Permalink }}
|
||||
|
@ -1 +1 @@
|
||||
7.5.0+3ccc8f777f8dd35f750a00ca986f9db808548306
|
||||
7.5.0+7a2667a7d3f4f14d5188e9df975ce6e3799e83c3
|
Loading…
x
Reference in New Issue
Block a user