diff --git a/crowdin.yml b/crowdin.yml index 4641ea86..fbfb31f9 100644 --- a/crowdin.yml +++ b/crowdin.yml @@ -1,5 +1,5 @@ -project_id_env: CROWDIN_PROJECT_ID api_token_env: CROWDIN_PERSONAL_TOKEN +project_id: "509862" "preserve_hierarchy": true files: - source: "/docs/**/*.en.*" diff --git a/mkdocs.production.yml b/mkdocs.production.yml index 736a5b33..72f1a17c 100644 --- a/mkdocs.production.yml +++ b/mkdocs.production.yml @@ -26,16 +26,16 @@ extra: provider: plausible property: privacyguides.org feedback: - title: Was this page helpful? + title: feedback.title ratings: - icon: material/robot-happy-outline - name: This page was helpful + name: feedback.helpful.name data: Helpful - note: Thanks for your feedback! + note: feedback.helpful.note - icon: material/robot-confused - name: This page could be improved + name: feedback.improve.name data: Needs Improvement - note: Thanks for your feedback! Help us improve this page by opening a discussion on our forum. + note: feedback.improve.note theme: features: @@ -51,19 +51,19 @@ theme: accent: deep purple toggle: icon: material/brightness-auto - name: Switch to light mode + name: theme.light - media: "(prefers-color-scheme: dark)" scheme: slate accent: amber toggle: icon: material/brightness-2 - name: Switch to system theme + name: theme.auto - media: "(prefers-color-scheme: light)" scheme: default accent: deep purple toggle: icon: material/brightness-5 - name: Switch to dark mode + name: theme.dark watch: - theme diff --git a/mkdocs.yml b/mkdocs.yml index 3f768972..843fa7f5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -5,10 +5,6 @@ site_dir: 'site' site_name: Privacy Guides site_description: | Privacy Guides is your central privacy and security resource to protect yourself online. -copyright: | - Privacy Guides is a non-profit, socially motivated website that provides information for protecting your data security and privacy.
- We do not make money from recommending certain products, and we do not use affiliate links.
- © 2022 Privacy Guides and contributors. Content licensed under CC BY-ND 4.0. extra: social: diff --git a/theme/main.html b/theme/main.html index 1f139e10..e9504cac 100644 --- a/theme/main.html +++ b/theme/main.html @@ -1,5 +1,4 @@ {% extends "base.html" %} - {% block extrahead %} {% endblock %} diff --git a/theme/overrides/home.en.html b/theme/overrides/home.en.html index e82dc4d1..5851b396 100644 --- a/theme/overrides/home.en.html +++ b/theme/overrides/home.en.html @@ -1,7 +1,7 @@ -{% extends "base.html" %} +{% extends "main.html" %} {% block extrahead %} - + {{ super() }} {% endblock %} {% block tabs %} {{ super() }} diff --git a/theme/overrides/strings.en.html b/theme/overrides/strings.en.html new file mode 100644 index 00000000..ebbb572a --- /dev/null +++ b/theme/overrides/strings.en.html @@ -0,0 +1,27 @@ +{% macro t(key) %}{{ { + + "language": "en", + + "site.description": "Privacy Guides is your central privacy and security resource to protect yourself online.", + + "theme.light": "Switch to light mode", + + "theme.dark": "Switch to dark mode", + + "theme.auto": "Switch to system theme", + + "feedback.title": "Was this page helpful?", + + "feedback.helpful.name": "This page was helpful", + + "feedback.helpful.note": "Thanks for your feedback!", + + "feedback.improve.name": "This page could be improved", + + "feedback.improve.note": "Thanks for your feedback! Help us improve this page by opening a discussion on our forum.", + + "copyright.intro": "Privacy Guides is a non-profit, socially motivated website that provides information for protecting your data security and privacy.", + + "copyright.affiliates": "We do not make money from recommending certain products, and we do not use affiliate links." + + }[key] }}{% endmacro %} diff --git a/theme/overrides/strings.fr.html b/theme/overrides/strings.fr.html new file mode 100644 index 00000000..fe20229f --- /dev/null +++ b/theme/overrides/strings.fr.html @@ -0,0 +1,5 @@ +{% macro t(key) %}{{ { + + "language": "fr" + + }[key] }}{% endmacro %} diff --git a/theme/overrides/strings.he.html b/theme/overrides/strings.he.html new file mode 100644 index 00000000..160cb81a --- /dev/null +++ b/theme/overrides/strings.he.html @@ -0,0 +1,5 @@ +{% macro t(key) %}{{ { + + "language": "he" + + }[key] }}{% endmacro %} diff --git a/theme/overrides/strings.nl.html b/theme/overrides/strings.nl.html new file mode 100644 index 00000000..83ad9b5c --- /dev/null +++ b/theme/overrides/strings.nl.html @@ -0,0 +1,5 @@ +{% macro t(key) %}{{ { + + "language": "nl" + + }[key] }}{% endmacro %} diff --git a/theme/partials/feedback.html b/theme/partials/feedback.html new file mode 100644 index 00000000..516b3f03 --- /dev/null +++ b/theme/partials/feedback.html @@ -0,0 +1,39 @@ +{% if config.extra.analytics %} + {% set feedback = config.extra.analytics.feedback %} +{% endif %} +{% if page.meta and page.meta.hide %} + {% if "feedback" in page.meta.hide %} + {% set feedback = None %} + {% endif %} +{% endif %} +{% if feedback %} + +{% endif %} diff --git a/theme/partials/footer.html b/theme/partials/footer.html index b73f4df8..a3ecccb0 100644 --- a/theme/partials/footer.html +++ b/theme/partials/footer.html @@ -1,7 +1,13 @@