aboutsummaryrefslogtreecommitdiffstats
path: root/templates/wiki/base.html
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-13 16:43:42 +0100
commitbe2bbe35cf49763ad0258c005f3cbdddd7a21d75 (patch)
tree962d5e52f4bb57c397c068ae6a11b57952cfc459 /templates/wiki/base.html
parent[DB] Attempt reconnection if current connection was lost (diff)
Compile as much JS with Gulp as possible
This will concatenate ALL of our JS, and minify it - thus leaving us with a single file to be loaded. There's a few libraries we can't do this with, unfortunately - these are now added in fouc.js: * Ace Editor * Flatpickr * Font-Awesome
Diffstat (limited to 'templates/wiki/base.html')
-rw-r--r--templates/wiki/base.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/templates/wiki/base.html b/templates/wiki/base.html
index f9aa251e..0e5e9733 100644
--- a/templates/wiki/base.html
+++ b/templates/wiki/base.html
@@ -6,11 +6,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- Prevent Flash of Unstyled Content -->
- <script src="{{ static_file('js/fouc.js') }}"></script>
-
- <!-- Other JS loads -->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-rc.4/js/uikit.min.js"></script>
+ <script src="{{ static_file('js/script.js') }}" type="application/javascript"></script>
<!-- Static stuff -->
<link rel="shortcut icon" href="{{ static_file('favicon.ico') }}">
@@ -216,7 +212,8 @@
</div>
</footer>
- <script src='{{ static_file('js/countdown.js') }}'></script>
- <script src='{{ static_file('js/wiki.js') }}'></script>
+ <script>
+ wiki_sidebar();
+ </script>
</body>
</html>