Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/spech66/bootstrap-bp-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pech <windows@spech.de>2019-10-03 11:55:32 +0300
committerSebastian Pech <windows@spech.de>2019-10-03 11:55:32 +0300
commit4aeeebb09a5ae23f0706a7e0b72a4158d74c4d5d (patch)
treeaae2345de57045ac0a47aef85f8a8b6a0df2f652
parent96c9da5df0bda8a539b051ec9599512bc0d8bcce (diff)
404 Page not found
-rw-r--r--i18n/de.toml6
-rw-r--r--i18n/en.toml6
-rw-r--r--layouts/404.html24
3 files changed, 36 insertions, 0 deletions
diff --git a/i18n/de.toml b/i18n/de.toml
index ad77050..baf44c5 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -20,6 +20,12 @@ other="Übersetzungen"
[themeby]
other = "Theme von"
+[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 64abb62..252961b 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -20,6 +20,12 @@ other="Translations"
[themeby]
other = "Theme 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..0d73975 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html lang="{{.Site.Language.Lang }}">
+ <meta charset="utf-8">
+ <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ <main role="main">
+ <div class="container mt-3 mb-3">
+ <div class="mb-3">
+ <div class="card">
+ <div class="card-body">
+ <h1 class="card-title"><a href="{{ "/" | relLangURL }}"></a>{{ .Title | markdownify }}</a></h1>
+ <p class="card-text">{{ i18n "error404" }}</p>
+ <a href="{{ "/" | relLangURL }}" class="card-link">{{ i18n "gotohome" }}</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </main>
+ {{- partial "footer.html" . -}}
+ {{- partial "js.html" . -}}
+ </body>
+</html>