initial commit

This commit is contained in:
2025-02-19 00:16:57 +01:00
parent 1d9cd91fcd
commit d89698593b
1293 changed files with 55933 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{{- /* based on Hugo 0.125.5 alias.html */}}
<!DOCTYPE html>
<html>
<head>
{{- $url := .Permalink }}
{{- if site.BaseURL }}
{{- $url = replace .Permalink site.BaseURL "/" }}
{{- end }}
{{- $url = replace $url "//" "/" }}
{{- with site.GetPage $url }}
{{- /* if defaultContentLanguageInSubdir=false we are ending here for home page of the default language */}}
{{- $url = partial "permalink.gotmpl" (dict "to" .) }}
{{- else }}
{{- $url_alt := replaceRE "^/[^/]*(/.*)" "${1}" $url }}
{{- with site.GetPage $url_alt }}
{{- /* if defaultContentLanguageInSubdir=true we are ending here for home page */}}
{{- $url = partial "permalink.gotmpl" (dict "to" .) }}
{{- else }}
{{- /* for regular aliases we are ending here with no original page found */}}
{{- $url = partial "permalink.gotmpl" (dict "link" $url) }}
{{- end }}
{{- end }}
<meta charset="utf-8">
<meta name="robots" content="noindex">
<meta http-equiv="refresh" content="0; url={{ $url }}">
{{- $link := "<link href=\"%s\" rel=\"%s\">" }}
<title>{{ $url }}</title>
{{ (printf $link $url "canonical") | safeHTML }}
</head>
</html>