diff options
Diffstat (limited to 'docs/_layouts/default.html')
-rw-r--r-- | docs/_layouts/default.html | 7 |
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> |