Basically I’m creating a reviews slider that shows 3 reviews per slide, I did a bit of research but I’m not quite sure the easiest way to make sure that’ll it’ll fill out the slides properly, begin a new slide, and somehow I need to make sure that the first slide gets the active class. There’s also the “data-bs-iinterval” thats one thing on the first slide, another on the second, and missing on the last slide. Should I even bother trying to template this? I’ve used this feature on more simpler things, so I’m trying to take advantage of this here as I’m sure it’d be great for the reviews but maybe I’m over complicating this.
Include a link to the source code repository of your project, because we really need the context of seeing your templates and partials to be able to help you. It is trivial to do a quick git clone on your repo, then run hugo server in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
If you can’t share your repository for whatever reason, consider creating a dummy repo that you can share, which reproduces the problem you’re experiencing.
Okay the html its generating looks about right but now I’ve just got 2 last issues, on the first carousel-item it needs the active class but I need to somehow remove that on the next 2 slides it generates. Then theres a data-bs-interval value thats 10000 on the first, and should be 2000 then 0 on the last two any idea how I can set those up? Thanks so much for all the help so far btw!
Edit: I still haven’t quite figured it out but I think I need an if/else statement. “If the first in the sequence do ‘carousel-item active’ and after that do 'carousel-item” I’ve tried a few things but I can’t quite figure out the right syntax