mirror of
https://github.com/privacyguides/privacyguides.org
synced 2024-11-30 15:03:32 +01:00
Add static 404 page (#2199)
Signed-off-by: Daniel Gray <dngray@privacyguides.org> Signed-off-by: mfwmyfacewhen <94880365+mfwmyfacewhen@users.noreply.github.com>
This commit is contained in:
parent
1487ad6dca
commit
96da882689
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,6 +2,8 @@ site
|
|||||||
/i18n/
|
/i18n/
|
||||||
/includes/*
|
/includes/*
|
||||||
!/includes/*.en.*
|
!/includes/*.en.*
|
||||||
|
/static/i18n/*
|
||||||
|
!/static/i18n/*.en.*
|
||||||
/theme/overrides/*
|
/theme/overrides/*
|
||||||
!/theme/overrides/*.en.*
|
!/theme/overrides/*.en.*
|
||||||
# include Bagnard font in social card
|
# include Bagnard font in social card
|
||||||
|
@ -35,3 +35,8 @@ files:
|
|||||||
translation_replace:
|
translation_replace:
|
||||||
"en.": ""
|
"en.": ""
|
||||||
skip_untranslated_files: false
|
skip_untranslated_files: false
|
||||||
|
- source: "/static/i18n/*.en.*"
|
||||||
|
translation: "/static/i18n/%file_name%.%two_letters_code%.%file_extension%"
|
||||||
|
translation_replace:
|
||||||
|
"en.": ""
|
||||||
|
skip_untranslated_files: false
|
||||||
|
18
docs/404.md
18
docs/404.md
@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
hide:
|
|
||||||
- feedback
|
|
||||||
meta:
|
|
||||||
- property: "robots"
|
|
||||||
content: "noindex, nofollow"
|
|
||||||
---
|
|
||||||
|
|
||||||
# 404 - Not Found
|
|
||||||
|
|
||||||
We couldn't find the page you were looking for! Maybe you were looking for one of these?
|
|
||||||
|
|
||||||
- [Introduction to Threat Modeling](basics/threat-modeling.md)
|
|
||||||
- [Recommended DNS Providers](dns.md)
|
|
||||||
- [Best Desktop Web Browsers](desktop-browsers.md)
|
|
||||||
- [Best VPN Providers](vpn.md)
|
|
||||||
- [Privacy Guides Forum](https://discuss.privacyguides.net)
|
|
||||||
- [Our Blog](https://blog.privacyguides.org)
|
|
18
netlify.toml
18
netlify.toml
@ -32,44 +32,44 @@
|
|||||||
X-XSS-Protection = "0"
|
X-XSS-Protection = "0"
|
||||||
X-Content-Type-Options = "nosniff"
|
X-Content-Type-Options = "nosniff"
|
||||||
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
|
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
|
||||||
Content-Security-Policy = "default-src 'none'; script-src https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://*.privacyguides.net; frame-ancestors 'none'"
|
Content-Security-Policy = "default-src 'none'; script-src https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://*.privacyguides.net; frame-ancestors 'none'"
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/:lang/about/donate/"
|
for = "/:lang/about/donate/"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Content-Security-Policy = "default-src 'none'; script-src https://opencollective.com https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src https://opencollective.com data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://opencollective.com; frame-ancestors 'none'"
|
Content-Security-Policy = "default-src 'none'; script-src https://opencollective.com https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src https://opencollective.com data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://opencollective.com; frame-ancestors 'none'"
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/:lang/tor/"
|
for = "/:lang/tor/"
|
||||||
[headers.values]
|
[headers.values]
|
||||||
Content-Security-Policy = "default-src 'none'; script-src https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self'; img-src data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://snowflake.torproject.org; frame-ancestors 'none'"
|
Content-Security-Policy = "default-src 'none'; script-src https://www.privacyguides.org https://api.privacyguides.net 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src data: 'self'; connect-src https://api.github.com https://*.privacyguides.net 'self'; frame-src https://snowflake.torproject.org; frame-ancestors 'none'"
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/es/*"
|
from = "/es/*"
|
||||||
to = "/es/404/index.html"
|
to = "/i18n/404.es.html"
|
||||||
status = 404
|
status = 404
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/fr/*"
|
from = "/fr/*"
|
||||||
to = "/fr/404/index.html"
|
to = "/i18n/404.fr.html"
|
||||||
status = 404
|
status = 404
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/he/*"
|
from = "/he/*"
|
||||||
to = "/he/404/index.html"
|
to = "/i18n/404.he.html"
|
||||||
status = 404
|
status = 404
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/it/*"
|
from = "/it/*"
|
||||||
to = "/it/404/index.html"
|
to = "/i18n/404.it.html"
|
||||||
status = 404
|
status = 404
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/nl/*"
|
from = "/nl/*"
|
||||||
to = "/nl/404/index.html"
|
to = "/i18n/404.nl.html"
|
||||||
status = 404
|
status = 404
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/*"
|
from = "/*"
|
||||||
to = "/en/404/index.html"
|
to = "/i18n/404.en.html"
|
||||||
status = 404
|
status = 404
|
||||||
|
24
static/i18n/404.en.html
Normal file
24
static/i18n/404.en.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user