Skip to content

Commit

Permalink
Merge branch 'main' into french-translation
Browse files Browse the repository at this point in the history
  • Loading branch information
markdumay committed Aug 31, 2023
2 parents 31d98ef + 2b84def commit d42b980
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layouts/shortcodes/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@
{{- $url = index $segments 0 -}}
{{- $anchor = index $segments 1 -}}
{{ if not $url }}
{{- $url = strings.TrimSuffix "/" .Page.RelPermalink -}}
{{- with .Page.Language }}{{ $url = strings.TrimPrefix (path.Join "/" .Lang) $url}}{{ end -}}
{{ $url = .Page.File.Path }}
{{ end }}
{{ end }}
{{ else }}
Expand Down

0 comments on commit d42b980

Please sign in to comment.