Hello there.
I'm trying to customize the Future Imperfect theme, by HTML5Up to Grav, and the following happens to me:
If I use OPTION 1 ...
{% block stylesheets %}
{% do assets.addCss('theme://assets/css/main.css') %}
{% endblock %}
and the same happens with JS:
{% block javascripts %}
{% do assets.addJs('theme://assets/js/main.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/breakpoints.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/browser.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/jquery.min.js', {group:'bottom'}) %}
{% do assets.addJs('theme://assets/js/util.js', {group:'bottom'}) %}
{% endblock %} #}
The open menu effect with this option not working.
If I use OPTION 2 ...
<link rel="stylesheet" href="{{theme_url}}/assets/css/main.css" />
<script src="{{theme_url}}/assets/js/jquery.min.js"></script>
<script src="{{theme_url}}/assets/js/browser.min.js"></script>
<script src="{{theme_url}}/assets/js/breakpoints.min.js"></script>
<script src="{{theme_url}}/assets/js/util.js"></script>
<script src="{{theme_url}}/assets/js/main.js"></script>
All works fine.
Moreover, if I inspect the code in Chrome or Firefox, the routes are same (\<link href="/grav-admin2/user/themes/future2/assets/css/main.css" rel="stylesheet">, for example)
Why is this happening? What should I change?
Thanks in advance
Note: I'm making port of Future Theme from scratch, I'm not using the Grav theme in repository. Original theme where you can open menu effect https://html5up.net/uploads/demos/future-imperfect/