Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
404 Page not found
  • Loading branch information
spech66 committed Oct 3, 2019
1 parent 670ed4c commit d771616
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions i18n/de.toml
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions i18n/en.toml
Expand Up @@ -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"
Expand Down
27 changes: 27 additions & 0 deletions 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>

0 comments on commit d771616

Please sign in to comment.