Skip to content

Commit

Permalink
Deploy preview warning (#2104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaharagon committed Mar 27, 2023
1 parent d25b402 commit 77c073c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/mkdocs.common.yml
Expand Up @@ -19,6 +19,7 @@
# IN THE SOFTWARE.

extra:
context: !ENV [CONTEXT, "production"]
social:
- icon: simple/mastodon
link: https://mastodon.neat.computer/@privacyguides
Expand Down
6 changes: 6 additions & 0 deletions theme/main.html
Expand Up @@ -60,4 +60,10 @@
<a href="https://www.privacyguides.org/">
<strong>Visit privacyguides.org for the latest version.</strong>
</a>
{% elif config.extra.context == "deploy-preview" %}
You're viewing an <strong>unreviewed preview</strong> of Privacy Guides built on {{ build_date_utc }}.
These previews are <strong>user-submitted</strong> and may not necessarily reflect the opinion of the site.
<a href="https://www.privacyguides.org/">
<strong>Visit privacyguides.org for current advice.</strong>
</a>
{% else %}{% endif %}{% endblock %}

0 comments on commit 77c073c

Please sign in to comment.