Skip to content

Commit aa5b4c0

Browse files
committed
feat: add 404 page
1 parent 5a8f703 commit aa5b4c0

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

hugo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ disableKinds = ['taxonomy', 'term']
7272
weight = 80
7373
[languages.de.params]
7474
description = "Freifunk Berlin ist eine lokale Initiative mit dem Ziel, ein freies WLAN-Netzwerk über Berlin aufzuspannen und freien Netzzugang anzubieten."
75+
errordescription = "Die gesuchte Seite konnte nicht gefunden werden. Versuche es später noch einmal oder gehe zurück zu unserer Homepage."
76+
errortitle = "Seite nicht gefunden :("
7577
[languages.de.params.footer]
7678
copyright = ":YEAR: Freifunk Berlin | [Impressum](/de/imprint)"
7779
[[languages.de.params.footer.link]]
@@ -117,6 +119,8 @@ disableKinds = ['taxonomy', 'term']
117119
weight = 80
118120
[languages.en.params]
119121
description = "Freifunk Berlin is a local initiative with the aim of setting up a free WiFi network across Berlin and offering free network access."
122+
errordescription = "The requested site could not be found. Please try again later or return to our homepage."
123+
errortitle = "Site not found :("
120124
[languages.en.params.footer]
121125
copyright = ":YEAR: Freifunk Berlin | [imprint](/de/imprint)"
122126
[[languages.en.params.footer.link]]

layouts/404.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{ define "main"}}
2+
<div class="d-flex flex-column justify-content-center align-items-center four-oh-four">
3+
<div class="px-1">
4+
<h1 class="text-center">{{- .Site.Params.Errortitle}}</h1>
5+
<h4 class="text-center">{{- .Site.Params.Errordescription}}</h4>
6+
</div>
7+
<div class="px-1">
8+
<a href="{{ "" | relURL }}"><i class="material-icons size-35 me-0">berlin.freifunk.net</i></a>
9+
</div>
10+
</div>
11+
{{ end }}

0 commit comments

Comments
 (0)