dirkolbrich / hugo-tailwindcss-starter-theme

Starter files for a Hugo theme with Tailwindcss
MIT License
400 stars 55 forks source link

Fix content resolving for running 'hugo server' command from base dir #44

Closed chringel21 closed 2 years ago

chringel21 commented 2 years ago

This pull fixes an issue where the tailwind.config.js's content couldn't be resolved correctly, when running the command hugo server from the base dir of a Hugo project.

Steps to reproduce:

  1. Create a new Hugo site hugo new site test
  2. Clone tailwindcss-starter theme cd test/themes && git clone https://github.com/dirkolbrich/hugo-theme-tailwindcss-starter.git tailwind
  3. Change config.toml to use theme = 'tailwind'
  4. Change dir back to test and run hugo server -D
  5. CSS is not loaded correctly
Bildschirmfoto 2022-02-27 um 11 29 35

After applying the fix, everything works as expected when running hugo server -D from the site's base dir.

Bildschirmfoto 2022-02-27 um 11 30 31
dirkolbrich commented 2 years ago

Long time, no see. Thank you for this fix.