culinary.kemonine.info/themes/hugo-theme-relearn/layouts/alias.html

15 lines
645 B
HTML
Raw Normal View History

2022-12-03 15:27:03 +00:00
<!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>