From 7924704c0045f573da6e891ab97cbdb7b7249d7a Mon Sep 17 00:00:00 2001 From: Daniel Hovie <dhaavi@users.noreply.github.com> Date: Tue, 10 Jan 2023 15:09:47 +0100 Subject: [PATCH] Improve maint page and enable redirect checks (#240) --- _includes/head.html | 4 ++++ support/maintenance.html | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index 3af59b8..6d4d810 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -34,3 +34,7 @@ <link rel="stylesheet" href="{{ site.assets_url }}css/main.css" type="text/css"> {% include plausible.html %} + +{%- if page.redirect -%} +<meta http-equiv="refresh" content="{{ page.redirect_after | default: 0 }};url={{ page.redirect }}" /> +{%- endif %} diff --git a/support/maintenance.html b/support/maintenance.html index 72c129b..c58c7de 100644 --- a/support/maintenance.html +++ b/support/maintenance.html @@ -1,18 +1,22 @@ --- layout: page title: Maintenance +redirect: /support/maintenance +redirect_after: 60 --- <section class="publication-layout"> <div class="markdown-container max-w-5xl"> <h1 class="font-extrabold"> - Maintenance In Progress + Account Server is in Maintenance </h1> <p style="margin-top: 50px;"> - You have been redirected to here because the service you are trying to access is currently under maintenance. + You have been redirected here because the Account Server is currently under maintenance.<br> + It will be available again by 10. January 16:00 UTC. </p> <p> - It will be available again shortly. + This page will automatically check the status and redirect you once maintenance has ended.<br> + You may also refresh this page to check. </p> </div> </section>