diff options
author | Mike <mikesecondly@yandex.ru> | 2019-02-15 23:01:42 +0300 |
---|---|---|
committer | Mike <mikesecondly@yandex.ru> | 2019-02-15 23:01:42 +0300 |
commit | edfd8f323b1d56c504b64513dafcebcda388a238 (patch) | |
tree | 07fd4d526aed57a359e9e50c3dd8d4efbba0f87c | |
parent | e9db6b1a0bd9dc7c3896c50c83a063e31042095d (diff) |
feat: possibility to customize 404 page
-rw-r--r-- | config.toml | 1 | ||||
-rw-r--r-- | layouts/404.html | 8 | ||||
-rw-r--r-- | static/css/vncnt.css | 6 |
3 files changed, 14 insertions, 1 deletions
diff --git a/config.toml b/config.toml index 66cf28d..f3125aa 100644 --- a/config.toml +++ b/config.toml @@ -28,6 +28,7 @@ title = "John Doe ยท Landing Page" bio = "First Row. \nSecond Row." avatar = "img/avatar.jpg" favicon = "img/favicon.ico" + error404 = "There is no such page" [params.contact] email = "john.doe@example.com" diff --git a/layouts/404.html b/layouts/404.html index e69de29..700c8b0 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -0,0 +1,8 @@ +<!DOCTYPE HTML> + {{ partial "includes" . }} + <div class="error404"> + {{ with .Site.Params.error404 }} + <h2>{{ . }}</h2> + {{ end }} + </div> +</html> diff --git a/static/css/vncnt.css b/static/css/vncnt.css index 8794e88..f45f78e 100644 --- a/static/css/vncnt.css +++ b/static/css/vncnt.css @@ -18,7 +18,7 @@ there. */ @import url('skeleton.css'); -.landingpage { +.landingpage, .error404 { position: absolute; top: 50%; left: 50%; @@ -27,6 +27,10 @@ there. max-width: 90%; } +.error404 { + text-transform: uppercase; +} + p.reset-margin { margin-bottom: 1rem; /*skeleton.css: 2.5rem*/ } |