I’m trying to design a carousel for my site using the owl carousel (that came with the theme “creative-portfolio”), but I’m having problems trying to decide how to implement it.
I want that each picture has its title, alt and obviously the source. I imagine I can set it up in the data folder, I can use layouts to create the html, but how should I call it inside my .md page? should I create a shortcut for each carousel? I’m going with this problem around my head and I don’t realize how to design it?
I think that the best way would be to call the carousel through a shortcode. Why use data?
You could also set up frontmatter parameters for the images that are called in the carousel shortcode.
And then just placing it in your content e.g. {{< owl-carousel >}} would give you the rendered carousel.
But why use a carousel in the first place? They kind of make sense for product pics these days. Nothing beats the default way of displaying images on a page, especially on mobile.
Also regarding carousel plugins. Owl kind of sucks. There are better ones out there like Slick Carousel or if you feel confident about ditching jQuery Lory.js