tractordev / wanix

Experimental, local-first, web-native, Unix-like development environment
https://wanix.sh
MIT License
206 stars 11 forks source link

support Hugo #71

Closed progrium closed 4 months ago

progrium commented 5 months ago

The static site generator Hugo is written in Go and can be used to generate a static site in Wanix. We initially want to use the output to deploy static sites using a separate mechanism to push to GitHub, so the built-in deploy mechanisms aren't important. We just want to generate static site files. We also don't care about the dev server just yet, since we don't support sockets/servers yet.

In this Twitch stream around the 1h10m mark, we start working on getting Hugo to run in Wanix. We had to make some patches and remove some code, but we eventually got it to run and generate output to prove it out. These patches need to be recreated and probably made into a patch similar to external/micro either in a new repo or I would accept it in external for now.

I would also love if somebody could find a minimal Hugo project layout. It assumes you'll be pulling a theme repo, which we can't do yet, but this is where you'd get any templates, so without a minimal theme you can't generate a site with any posts from Markdown files for example.