fix: lang always is part of filepath

This commit is contained in:
Henk Verlinde 2022-02-01 13:47:55 +01:00
parent 79ad59f311
commit 971894755e
1 changed files with 1 additions and 5 deletions

View File

@ -20,11 +20,7 @@
{{ $filePath := replace .File.Path "\\" "/" }} {{ $filePath := replace .File.Path "\\" "/" }}
{{ if .Site.Params.options.multilingualMode }}
{{ $parts = $parts | append "content" .Lang $filePath }} {{ $parts = $parts | append "content" .Lang $filePath }}
{{ else }}
{{ $parts = $parts | append "content" $filePath }}
{{ end }}
{{ $url := delimit $parts "/" }} {{ $url := delimit $parts "/" }}