When setting up foundation-sites, I typically use yarn or npm for installation. This results in the sources being located in node_modules/foundation-sites. Even when using django, I encounter the same issue.
Below is an excerpt from my index.html:
{% load static %}
{% load sass_tags %}
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>short url</title>
{% load compress %}
{% compress css %}
<link href="{% sass_src 'scss/style.scss' %}" rel="stylesheet" type="text/css" />
{% endcompress %}
</head>
<body>
<div class="top-bar">
<div class="top-bar-left">
<ul class="dropdown menu" data-dropdown-menu>
<li class="menu-text">shorturl</li>
<li><a href="/shorturl">Racine</a></li>
<li><a href="/shorturl/url_list">url list</a></li>
<li>
<a href="http://www.perdu.com">perdu</a>
<ul class="menu vertical">
<li><a href="#">Lien 1</a></li>
<li><a href="#">Lien 2</a></li>
</ul>
</li>
</ul>
</div>
</div>
{% block content %}
{% endblock %}
<script src="{% static "js/jquery/dist/jquery.js" %}"></script>
<script src="{% static "js/what-input/dist/what-input.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/foundation.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/plugins/foundation.core.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/plugins/foundation.dropdown.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/plugins/foundation.dropdownMenu.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/plugins/foundation.util.keyboard.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/plugins/foundation.util.box.js" %}"></script>
<script src="{% static "js/foundation-sites/dist/js/plugins/foundation.util.nest.js" %}"></script>
<script src="{% static "js/app.js" %}"></script>
</body>
</html>
Upon loading the webpage, I am encountering an issue with the dropdown menu.
Does anyone have any suggestions on how to resolve this?
Thank you for your assistance.