Add 404 and 502 error pages

This commit is contained in:
nemunaire 2020-06-12 17:35:10 +02:00
parent 8262a3ebcd
commit 86994ab72f
2 changed files with 53 additions and 0 deletions

8
content/502.en.md Normal file
View File

@ -0,0 +1,8 @@
+++
title = "happyDNS Unavailable"
+++
# System upgrade
We are currently performing a software upgrade and we should be back soon.

45
layouts/404.html Normal file
View File

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
<body>
<div id="all">
{{ partial "nav.html" . }}
{{ partial "breadcrumbs.html" . }}
<div id="content" class="mt-5 mb-5" style="min-height: calc(80vh - 180px)">
{{ if isset .Params "id" }}
{{ partial .Params.id . }}
{{ else }}
<div class="container">
<div>
<h2>{{ .Title }}</h2>
<p>
This is not the web page you are looking for.
</p>
</div>
</div>
<!-- /.container -->
{{ end }}
</div>
<!-- /#content -->
</div>
<!-- /#all -->
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
</html>