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 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/variables/assets/css/global/assets/css/compositions/assets/css/blocks/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
13 commits
CSS
63.5%
HTML
34.7%
JavaScript
1.8%
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 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/variables/assets/css/global/assets/css/compositions/assets/css/blocks/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
13 commits
CSS
63.5%
HTML
34.7%
JavaScript
1.8%