summaryrefslogtreecommitdiff
path: root/docs/_layouts
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2019-08-05 05:35:36 +0300
committerRasmus Andersson <rasmus@notion.se>2019-08-05 05:35:36 +0300
commitba49662904d5ba716802be57a48ea84cf89d3f10 (patch)
treeb65881e04e169632dffc617269c56c50731d37f0 /docs/_layouts
parent672ead9a6cf4f20772bccb217055d8b5d84fc6bc (diff)
downloadinter-ba49662904d5ba716802be57a48ea84cf89d3f10.tar.xz
release 3.8
Diffstat (limited to 'docs/_layouts')
-rw-r--r--docs/_layouts/default.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index 403d7a40b..6b903fc75 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -70,6 +70,13 @@ endfor
<meta property="og:url" content="https://rsms.me/inter{{ page.url }}">
</head>
<body>
+ {% if site.safe == false %}<script>
+ // Allows passing "?debug" in the query string for local builds, which
+ // sets "debug" on the <html> element, enabling CSS debugging.
+ if (document.location.search.indexOf("debug") != -1) {
+ document.documentElement.classList.add("debug")
+ }
+ </script>{% endif %}
<div id="hud-notification"><div class="msg">Hello</div></div>
<script src="{{url_root}}res/base.js?v={{ base_js_v }}"></script>