diff --git a/templates/base.html b/templates/base.html index ffca0e02b39bfe5f19010e253e72b65a1b15a7ad..08a306236b789e3660e77672cce7e4ea98a2ec20 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 00f6143b563846139ee4578f3de9bb1a05fe51ab..9e39e55596197c69ddc082dfa558b68c0bdf647a 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