This is my favorite way to code static websites. It's a Hugo site with the following front-end technologies built in.
I copied much of the inspiring cube-boilerplate into this Hugo enviroment. I've modified it to use the utopia-core functions for font sizes and spacing.
The boilerplate uses a modified tailwindcss config. In order to get tailwindy behavior in Hugo, I followed this hugo-starter-tailwind-basic from bep.
I use @hotwired/turbo to speed everything up for free.
git clone https://github.com/jameskerr/hugo-starter
mv hugo-starter my-cool-site # rename to something you want
cd my-cool-site
yarn
hugo server
Add your own CSS files anywhere in these directories to have them automatically included.
assets/css/blocks/
assets/css/compositions/
assets/css/utilities/
Take a look at assets/css/main.css
for how it all is stitched together. Also visit the docs for CUBE CSS and Utopia.
Add your JavaScript files to assets/js
, then import then into assets/js/main.js
. These will get build using Hugo's js.Build pipe.
Enjoy!
Authored by James Kerr