alias: make redirect page language independend #398

because for aliased translation pages Hugo still sets the default language
This commit is contained in:
Sören Weber 2022-12-04 10:58:16 +01:00
parent c7ba0190f6
commit b424743055
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{ site.LanguageCode | default site.Language.Lang | default "en" }}" dir="{{ T "Reading-direction" | default "ltr" }}"> <html>
<head> <head>
{{- $url := replace (replace .Permalink site.BaseURL "/") "//" "/" }} {{- $url := replace (replace .Permalink site.BaseURL "/") "//" "/" }}
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "link" $url) }} {{- $url = partial "relLangPrettyUglyURL.hugo" (dict "link" $url) }}