mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
alias: make redirect page language independend #398
because for aliased translation pages Hugo still sets the default language
This commit is contained in:
parent
c7ba0190f6
commit
b424743055
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ site.LanguageCode | default site.Language.Lang | default "en" }}" dir="{{ T "Reading-direction" | default "ltr" }}">
|
||||
<html>
|
||||
<head>
|
||||
{{- $url := replace (replace .Permalink site.BaseURL "/") "//" "/" }}
|
||||
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "link" $url) }}
|
||||
|
|
Loading…
Reference in a new issue