404 #96
@ -12,9 +12,14 @@ server {
|
||||
rewrite ^/feed/.*$ /index.xml last;
|
||||
}
|
||||
|
||||
location = /404.html {
|
||||
internal;
|
||||
location ~ ^/it/.* {
|
||||
error_page 404 /it/404.html;
|
||||
}
|
||||
|
||||
location ~ ^/en/.* {
|
||||
error_page 404 /en/404.html;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
gzip on;
|
||||
|
11
layouts/404.en.html
Normal file
11
layouts/404.en.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
<h2>Content not found</h2>
|
||||
<p>The page you're looking for doesn't exist.</p>
|
||||
<p>If you think this is an error, <a href="mailto:info@bglug.it">let us know</a>.
|
||||
And in full open-source spirit, you can also <a href="https://git.libreschool.org/BgLUG">help up fix it</a>!</p>
|
||||
<p>
|
||||
<a href="{{ .Site.Home.RelPermalink }}">
|
||||
Go back to home
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
11
layouts/404.it.html
Normal file
11
layouts/404.it.html
Normal file
@ -0,0 +1,11 @@
|
||||
{{ define "main" }}
|
||||
<h2>Contenuto non trovato</h2>
|
||||
<p>La pagina che stai cercano non esiste.</p>
|
||||
<p>Se pensi che questo sia un errore, <a href="mailto:info@bglug.it">faccelo sapere</a>.
|
||||
E in pieno spirito open-source, puoi anche <a href="https://git.libreschool.org/BgLUG">aiutarci a sistemare</a>!</p>
|
||||
<p>
|
||||
<a href="{{ .Site.Home.RelPermalink }}">
|
||||
Torna alla home
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user