Add 404 page for gitlab pages
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
nemunaire 2024-02-29 09:18:56 +01:00
parent 82ef5b1beb
commit cbb671933f
2 changed files with 19 additions and 45 deletions

19
content/404.md Normal file
View File

@ -0,0 +1,19 @@
+++
title = "happyDomain Page Not Found"
url = "/404.html"
+++
# Page Not found
The page you requested cannot be found.
[Return to home page](/en/)
---
# Page introuvable
La page que vous avez demandée est introuvable.
[Retourner à l'accueil](/fr/)

View File

@ -1,45 +0,0 @@
<!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>