瀏覽代碼

Stein database only loads on relevant pages

Nathan Schneider 4 年之前
父節點
當前提交
a8e9e03c09
共有 1 個文件被更改,包括 2 次插入1 次删除
  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>