diff --git a/.gitignore b/.gitignore index 6d5574a5..db015e99 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ site /i18n/ /includes/* !/includes/*.en.* +/static/i18n/* +!/static/i18n/*.en.* /theme/overrides/* !/theme/overrides/*.en.* # include Bagnard font in social card diff --git a/crowdin.yml b/crowdin.yml index 16c2c3a4..5ff57907 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -35,3 +35,8 @@ files: translation_replace: "en.": "" 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 diff --git a/docs/404.md b/docs/404.md deleted file mode 100644 index 6c86dfa8..00000000 --- a/docs/404.md +++ /dev/null @@ -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) diff --git a/netlify.toml b/netlify.toml index 39c491de..9b41e1e7 100644 --- a/netlify.toml +++ b/netlify.toml @@ -32,44 +32,44 @@ X-XSS-Protection = "0" X-Content-Type-Options = "nosniff" 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]] for = "/:lang/about/donate/" [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]] for = "/:lang/tor/" [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]] from = "/es/*" - to = "/es/404/index.html" + to = "/i18n/404.es.html" status = 404 [[redirects]] from = "/fr/*" - to = "/fr/404/index.html" + to = "/i18n/404.fr.html" status = 404 [[redirects]] from = "/he/*" - to = "/he/404/index.html" + to = "/i18n/404.he.html" status = 404 [[redirects]] from = "/it/*" - to = "/it/404/index.html" + to = "/i18n/404.it.html" status = 404 [[redirects]] from = "/nl/*" - to = "/nl/404/index.html" + to = "/i18n/404.nl.html" status = 404 [[redirects]] from = "/*" - to = "/en/404/index.html" + to = "/i18n/404.en.html" status = 404 diff --git a/static/i18n/404.en.html b/static/i18n/404.en.html new file mode 100644 index 00000000..e00f13d4 --- /dev/null +++ b/static/i18n/404.en.html @@ -0,0 +1,24 @@ + + + + + + + 404 Not Found + + + + +
+ 404 Not Found! +

+ This means that your browser was able to communicate with your given server, but the server could not find + what was requested.

+ * Make sure the url is correct.
+ * Don't panic. +

+
Press any key to continue_
+
+ + +