Skip to content

Commit d77484e

Browse files
committed
Make edit links multilingual-aware
Signed-off-by: Chris Abraham <[email protected]>
1 parent e949760 commit d77484e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/layouts/partials/page-meta-links.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{ $path := "" }}
22
{{ with .File }}
3-
{{ $path = .Path }}
3+
{{ $path = printf "%s/%s" .Lang .Path }}
44
{{ else }}
5-
{{ $path = .Path }}
5+
{{ $path = printf "%s/%s" .Lang .Path }}
66
{{ end }}
77
{{ $pathFormatted := replace $path "\\" "/" }}
88
{{- $prefix := index (split $path "/") 0 -}}

0 commit comments

Comments
 (0)