diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html
index 2900d70020..0272032ce4 100644
--- a/docs/_templates/layout.html
+++ b/docs/_templates/layout.html
@@ -5,7 +5,7 @@
# version e.g. to say that something is likely to have changed.
# For more info see: https://www.sphinx-doc.org/en/master/templating.html
-->
- {% if pagename == "production/email-gateway" and release.endswith('+git') %}
+ {% if (pagename == "production/email-gateway" or pagename == "production/modifying-zulip") and release.endswith('+git') %}