Carousel in featured.html #339
-
Hi, I've been trying to replace the image and button in "featured.html" with carousel defined as partial. Basically I took the partial from "hugo-universal-theme", migrated the associated CSS to SCSS, imported the associated JS file. The SCSS file has the following values: I only get to see elements of the carousel if I set .owl-carousel.display to flex but it looks like this: Zoomed out for perspective Any advise? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Unless there is a specific reason you want to use the carousel from
The result looks like this: |
Beta Was this translation helpful? Give feedback.
Unless there is a specific reason you want to use the carousel from
hugo-universal-theme
, I recommend you use the native Hinode carousel instead. With a little bit of tweaking, you can replace thefeatured
section with a carousel instead. The following steps will get you started.Create a new site
Install dependencies
Add a new featured partial
Create a new file in your repository with the following path:
layout/partials/home/featured.html
. This replaces the default file from the Hinode core library. Add the following content to add a container that stretches across the entire page (b…