Translate error pages

This commit is contained in:
Andrew-71 2024-10-07 16:04:39 +03:00
parent 8ae76cc8e8
commit 6d37c363bb
10 changed files with 90 additions and 30 deletions

View file

@ -1,3 +1,4 @@
{{- define "404" -}}
<!DOCTYPE html>
<html lang="en">
<head>
@ -10,8 +11,9 @@
<body>
<main>
<h1>Error 404 - Not Found</h1>
<p>The page you were looking for doesn't exist or was moved</p>
<h3><a href="/">Go home?</a></h3>
<p>{{ translatableText "error.404" }}</p>
<p><a href="/">{{ translatableText "error.prompt" }}</a></p>
</main>
</body>
</html>
</html>
{{ end }}

View file

@ -1,3 +1,4 @@
{{- define "500" -}}
<!DOCTYPE html>
<html lang="en">
<head>
@ -10,8 +11,9 @@
<body>
<main>
<h1>Error 500 - Internal Server Error</h1>
<p>It's probably not your fault, but something broke</p>
<h3><a href="/">Go home?</a></h3>
<p>{{ translatableText "error.500" }}</p>
<p><a href="/">{{ translatableText "error.prompt" }}</a></p>
</main>
</body>
</html>
</html>
{{ end }}