mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
b424743055
because for aliased translation pages Hugo still sets the default language
14 lines
520 B
HTML
14 lines
520 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
{{- $url := replace (replace .Permalink site.BaseURL "/") "//" "/" }}
|
|
{{- $url = partial "relLangPrettyUglyURL.hugo" (dict "link" $url) }}
|
|
<meta charset="utf-8">
|
|
<meta name="robots" content="noindex">
|
|
<meta http-equiv="refresh" content="0; url={{ $url }}">
|
|
{{- $link := "<link href=\"%s\" rel=\"%s\" type=\"%s\" title=\"%s\">" }}
|
|
<title>{{ $url }}</title>
|
|
|
|
{{ (printf $link $url "canonical" "text/html" ($url | htmlEscape)) | safeHTML }}
|
|
</head>
|
|
</html>
|