From 5b16dc3273b27092bdd67b849f337dbe6c8f0002 Mon Sep 17 00:00:00 2001
From: Josh Borrow <joshua.borrow@durham.ac.uk>
Date: Fri, 18 Aug 2017 14:19:03 +0100
Subject: [PATCH] Removed navbar javascript

---
 templates/base.html  | 2 +-
 templates/index.html | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/templates/base.html b/templates/base.html
index ffca0e0..08a3062 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -16,7 +16,7 @@
 <body>
     {% block content %}{% endblock %}
     {% block js %}{% endblock %}
-    <script src="navbar.js"></script>
+    {% block navbarjs %}<script src="navbar.js"></script>{% endblock %}
 </body>
 </html>
 
diff --git a/templates/index.html b/templates/index.html
index 00f6143..9e39e55 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -36,4 +36,6 @@
         </a>
     </div>
 </div>
-{% endblock %}
\ No newline at end of file
+{% endblock %}
+
+{% block navbarjs %}{# Remove the JS for navbars from homepage #}{% endblock %}
\ No newline at end of file
-- 
GitLab