From 0d419af8946c76b3772a0bc45c00a73e75d092f9 Mon Sep 17 00:00:00 2001 From: ray Date: Sun, 3 May 2020 15:28:27 +0100 Subject: [PATCH] add 404 page --- layouts/404.html | 3 +++ layouts/partials/404.html | 7 +++++++ static/images/undraw-404.svg | 1 + 3 files changed, 11 insertions(+) create mode 100644 layouts/404.html create mode 100644 layouts/partials/404.html create mode 100644 static/images/undraw-404.svg diff --git a/layouts/404.html b/layouts/404.html new file mode 100644 index 0000000..23ecb19 --- /dev/null +++ b/layouts/404.html @@ -0,0 +1,3 @@ +{{ define "content" }} + {{ partial "404.html" . }} +{{ end }} diff --git a/layouts/partials/404.html b/layouts/partials/404.html new file mode 100644 index 0000000..eb91b42 --- /dev/null +++ b/layouts/partials/404.html @@ -0,0 +1,7 @@ +
+
+ 404 Page not found image +

{{ i18n "page_not_found" }}

+

{{ i18n "page_does_not_exist" }}
{{ i18n "head_back" .Site.BaseURL | safeHTML }}

+
+
diff --git a/static/images/undraw-404.svg b/static/images/undraw-404.svg new file mode 100644 index 0000000..3edbb58 --- /dev/null +++ b/static/images/undraw-404.svg @@ -0,0 +1 @@ +page not found \ No newline at end of file