gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
75.68k stars 7.52k forks source link

Hugo gets confused when multihost and all but one language is disabled #12288

Closed bep closed 6 months ago

bep commented 7 months ago

See https://discourse.gohugo.io/t/scss-broken-after-0-123/48937

whyboris commented 7 months ago

🙇 thank you for creating this issue. I'm the originator of the post on discourse - and my goal is to have a single codebase that builds several (different-language) websites (under different domains). I thought to build one at a time I had to disable all languages but one, but I see that I can build them all and simply go to public/en for English (full working website) and public/de for German - and everything seems to work 🥳

My build scripts did work better when I could build one language at a time by disableLanguages = ["es", "de"] - since all the files were in /public and I didn't have to move them from /public/en during the build (I'm also generating PDFs and static search via Pagefind) - so it is more convenient to build one language at a time (both PDF and Search tooling is easier to work with when there is a single website -- though I can complicate my script by changing ports manually and deleting subdirectories manually/with script).

tl;dr 🙇 thank you - please feel free to prioritize this issue as you see fit ❤️

p.s - my codebase: https://github.com/whyboris/utilitarianism.net

bep commented 7 months ago

@whyboris it's an obvious bug and the fix should be simple.

github-actions[bot] commented 5 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.