Browse Source

Stein database only loads on relevant pages

Nathan Schneider 3 years ago
parent
commit
a8e9e03c09
1 changed files with 2 additions and 1 deletions
  1. 2 1
      _includes/head.html

+ 2 - 1
_includes/head.html

@@ -34,8 +34,9 @@
     }
   </script>
 
-
   <!-- Stein database -->
+  {% if page.layout == "rule" or page.layout == "library" %}
   <script src="https://unpkg.com/stein-js-client"></script>
+  {% endif %}
 
 </head>