Skip to content

Carousel not displaying correctly #1545

Answered by msaringer
MaxiCabanas asked this question in Q&A
Discussion options

You must be logged in to vote

I ran into the same problem and managed to come up with a workaround. It looks like when the tailwind compile runs from the root of the site it doesn't include the tw-elements JavaScript due to the path in the ./themes/blowfish/tailwind.config.js file being relative to the theme directory:

module.exports = {
  content: [
    "./layouts/**/*.html",
    "./content/**/*.{html,md}",
    "./themes/blowfish/layouts/**/*.html",
    "./themes/blowfish/content/**/*.{html,md}",
    "./node_modules/tw-elements/js/**/*.js"

The last line needs to be edited to match the ones above it: "./themes/blowfish/node_modules/tw-elements/js/**/*.js"

Then when you run ./themes/blowfish/node_modules/tailwindcss/l…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@msaringer
Comment options

Answer selected by MaxiCabanas
@MaxiCabanas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants