diff --git a/config/mkdocs.common.yml b/config/mkdocs.common.yml
index e43b7d9fe6..71b49a0282 100644
--- a/config/mkdocs.common.yml
+++ b/config/mkdocs.common.yml
@@ -19,6 +19,7 @@
# IN THE SOFTWARE.
extra:
+ context: !ENV [CONTEXT, "production"]
social:
- icon: simple/mastodon
link: https://mastodon.neat.computer/@privacyguides
diff --git a/theme/main.html b/theme/main.html
index f05a188c72..ed83e22ee7 100644
--- a/theme/main.html
+++ b/theme/main.html
@@ -60,4 +60,10 @@
Visit privacyguides.org for the latest version.
+{% elif config.extra.context == "deploy-preview" %}
+ You're viewing an unreviewed preview of Privacy Guides built on {{ build_date_utc }}.
+ These previews are user-submitted and may not necessarily reflect the opinion of the site.
+
+ Visit privacyguides.org for current advice.
+
{% else %}{% endif %}{% endblock %}