Hi there!
I'm trying to learn to use Grav by doing a small portfolio project.
It's a modular page with several slideshows. The page is very simple and already exists, so I chose not to work with a parent theme. I'm just trying to adapt it in Grav.
I have been trying to install Siema (which shouldn't be too much of a technical challenge), but I'm having a harder time than expected. I researched similar issues, but there must be something basic I don't get right.
So I made a modular page called projects.html.twig. It has a block to include the content of several modules:
{% block content %}
{{ page.content }}
{% for module in page.collection() %}
<div class="left">
{{ module.title }}
</div>
<div class="right">
<div class="siema">
<div>
{{ module.content|raw }}
</div>
</div>
<button class="prev">Prev</button>
<button class="next">Next</button>
</div>
{% endfor %}
{% endblock %}
My modules have a default template, but it doesn't seem to be active in any way. The modular page just displays the titles of the module pages, and in another div, images between p tags.
After the footer of my modular page I'm loading the scripts for Siema:
{% do assets.addJs('theme://js/siema-master/dist/siema.min.js', {group: 'bottom'}) %}
{% do assets.addJs('theme://js/siema-master/script.js', {group: 'bottom'}) %}
</body>
</html>
This seems to work; no message from the console.
However, the script doesn't function as expected; I just have 2 series of images. Images that should be hidden are all visible, and buttons do nothing.
Any idea what's wrong here?
[edited for formatting]