fix: lang always is part of filepath
This commit is contained in:
parent
79ad59f311
commit
971894755e
|
@ -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 "/" }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue