mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
14 lines
645 B
HTML
14 lines
645 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ site.LanguageCode | default site.Language.Lang | default "en" }}" dir="{{ T "Reading-direction" | default "ltr" }}">
|
|
<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>
|