version: fix slashes in url #1050

This commit is contained in:
Sören Weber 2025-03-20 22:58:31 +01:00
parent 7a2667a7d3
commit b5f8bcc4e3
No known key found for this signature in database
GPG Key ID: BEC6D55545451B6D
2 changed files with 3 additions and 3 deletions

View File

@ -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 }}

View File

@ -1 +1 @@
7.5.0+3ccc8f777f8dd35f750a00ca986f9db808548306
7.5.0+7a2667a7d3f4f14d5188e9df975ce6e3799e83c3