Basic Hugo + Tailwind Setup not working - Help needed

Hello folks!

I’m struggling to setup basic hugo including tailwind. I would like to externalise the theme but when I do so the rendering stops working.

I did the following:

hugo new site website
cd website
hugo new theme tailwind
added theme to root hugo.toml 

I followed then the documentation of getting tailwind up and running:

Step 1: Installed tailwind deps in themes/tailwind/
Step 2: updated also in themes/tailwind/
Step 3: replaced the existing main.css in theme 
Step 4: Replaced the themes/tailwind/layouts/_partials/head/css.html
Step 5: Skipped  

I noticed that the themes/tailwind/hugo_stats.json not gets updated. And if I change the content the rendered page is not anymore updated.

Thanks a lot for your help in advance.

What about using this template:

You may use the link below to create a new repository based on this template:

https://github.com/new?template_name=hugo-tailwindcss-starter&template_owner=odhyp

Hopefully this can get you started easily.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.