aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-01 22:16:48 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-01 22:16:48 +0800
commitb4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8 (patch)
tree877008301b80f2dd4363ffb721a54344956af107 /templates
parentChange the main separator from : to - (diff)
downloadforge-b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8.tar.gz
forge-b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8.tar.zst
forge-b4bf72fe59a9b6f09c5c7e53cae5ddd7f09b9cf8.zip
Remind visitors of the change
Diffstat (limited to 'templates')
-rw-r--r--templates/400_colon.tmpl26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/400_colon.tmpl b/templates/400_colon.tmpl
new file mode 100644
index 0000000..6d8ec25
--- /dev/null
+++ b/templates/400_colon.tmpl
@@ -0,0 +1,26 @@
+{{/*
+ SPDX-License-Identifier: AGPL-3.0-only
+ SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>
+*/}}
+{{- define "400_colon" -}}
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{- template "head_common" . -}}
+ <title>400 Bad Request &ndash; {{ .global.forge_title }}</title>
+ </head>
+ <body class="400-colon">
+ {{- template "header" . -}}
+ <div class="padding-wrapper complete-error-page">
+ <h1>400 Bad Request</h1>
+ <p>We recently switched URL schemes. Previously &ldquo;<code>:</code>&rdquo; was used as our URL group separator, but because OpenSMTPD does not implement local-part address quoting properly, we&rsquo;re unable to include &ldquo;<code>:</code>&rdquo; in URLs properly, hence we use &ldquo;<code>-</code>&rdquo; now.</p>
+ <p>As a precaution in case visitors get confused, this page was set up. <strong>You should probably replace all &ldquo;<code>:</code>&rdquo;s with &ldquo;<code>-</code>&rdquo;s in the URL bar.</strong></p>
+ <hr />
+ <address>Lindenii Forge</address>
+ </div>
+ <footer>
+ {{- template "footer" . -}}
+ </footer>
+ </body>
+</html>
+{{- end -}}