From 3c20b9a271751b91e7890c060a1d86fed887dcf9 Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 3 Dec 2020 16:55:24 +0100 Subject: [PATCH] feat: Ajout des pages d'erreurs fixes: #12 --- Dockerfile | 2 +- content/404.md | 8 ++++++++ content/50x.md | 8 ++++++++ static/icons/404.svg | 1 + static/icons/500.svg | 1 + 5 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 content/404.md create mode 100644 content/50x.md create mode 100644 static/icons/404.svg create mode 100644 static/icons/500.svg diff --git a/Dockerfile b/Dockerfile index 4cac6b9..9d66d1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.weko.io/nginx-lowtech:0.0.6 +FROM registry.weko.io/nginx-lowtech:0.0.7 # Copie des sources du site COPY public /usr/share/nginx/html diff --git a/content/404.md b/content/404.md new file mode 100644 index 0000000..bfc5d14 --- /dev/null +++ b/content/404.md @@ -0,0 +1,8 @@ +--- +title: "Page **Introuvable**" +url: "/404.html" +--- + +![Image illustrant l'erreur 404](/icons/404.svg) + +Vous vous êtes perdu ? [Revenir à l'accueil en cliquant ici](/). diff --git a/content/50x.md b/content/50x.md new file mode 100644 index 0000000..e2fb62b --- /dev/null +++ b/content/50x.md @@ -0,0 +1,8 @@ +--- +title: "Erreur interne du serveur" +url: "/50x.html" +--- + +![Image illustrant l'erreur 500](/icons/500.svg) + +Le serveur a rencontré une erreur interne qui l’a empêché de satisfaire la requête. [Revenir à l'accueil en cliquant ici](/). diff --git a/static/icons/404.svg b/static/icons/404.svg new file mode 100644 index 0000000..b771ca1 --- /dev/null +++ b/static/icons/404.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/icons/500.svg b/static/icons/500.svg new file mode 100644 index 0000000..a7331c8 --- /dev/null +++ b/static/icons/500.svg @@ -0,0 +1 @@ + \ No newline at end of file