diff options
author | Sebastian Pech <windows@spech.de> | 2019-10-03 11:55:36 +0300 |
---|---|---|
committer | Sebastian Pech <windows@spech.de> | 2019-10-03 11:55:36 +0300 |
commit | d771616c57c24bb4fc619e2501e64d2f37af255c (patch) | |
tree | ece10bd6ab27a20708aaffd19cc7308547bc3743 | |
parent | 670ed4c56cabc2137e4c815f8178fb6a2d0c52f1 (diff) |
404 Page not found
-rw-r--r-- | i18n/de.toml | 6 | ||||
-rw-r--r-- | i18n/en.toml | 6 | ||||
-rw-r--r-- | layouts/404.html | 27 |
3 files changed, 39 insertions, 0 deletions
diff --git a/i18n/de.toml b/i18n/de.toml index dc886fe..80507ad 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -23,6 +23,12 @@ other = "Theme von" [madeby] other = "Erstellt mit" +[error404] +other = "Es tut uns wirklich leid aber hier scheint es nichts zu geben." + +[gotohome] +other = "Gehe zur Startseite" + # Taxonomoy title hack [Categories] other = "Kategorien" diff --git a/i18n/en.toml b/i18n/en.toml index dca9209..97b700b 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -23,6 +23,12 @@ other = "Theme by" [madeby] other = "Made by" +[error404] +other = "We are really sorry but there seems to be nothing here." + +[gotohome] +other = "Go to Homepage" + # Taxonomoy title hack [Categories] other = "Categories" diff --git a/layouts/404.html b/layouts/404.html index e69de29..3649192 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html lang="{{.Site.Language.Lang }}"> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + {{- partial "seo_schema" . -}} + <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> + {{- partial "head.html" . -}} + <body> + {{- partial "header.html" . -}} + <div class="container"> + <div class="row"> + <div class="col s12 m12"> + <div class="card"> + <div class="card-content"> + <h1 class="card-title"><a href="{{ "/" | relLangURL }}">{{ .Title | markdownify }}</a></h1> + <p class="card-text">{{ i18n "error404" }}</p> + <p><br /> + <a href="{{ "/" | relLangURL }}" class="blue waves-effect waves-light btn"><i class="material-icons right">navigate_next</i>{{ i18n "gotohome" }}</a> + </p> + </div> + </div> + </div> + </div> + </div> + {{- partial "footer.html" . -}} + {{- partial "js.html" . -}} + </body> +</html> |