hugo-theme-relearn/layouts/alias.html

15 lines
520 B
HTML
Raw Normal View History

<!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>
2022-11-19 17:06:22 +00:00
{{ (printf $link $url "canonical" "text/html" ($url | htmlEscape)) | safeHTML }}
</head>
</html>