Add 404 and 502 error pages
This commit is contained in:
parent
8262a3ebcd
commit
86994ab72f
8
content/502.en.md
Normal file
8
content/502.en.md
Normal 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
45
layouts/404.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user