Some tested-and-true tools for creative code (mostly p5js).
Visit nonlinear.nyc/toolbox for the updated list.
- Go to folder on your project:
- Jekyll:
_includes/
- Hugo:
layouts/shortcodes
- Jekyll:
- Run
git submodule add https://github.com/nonlinear/toolbox.git toolbox
- Jekyll: Use Jekyll include rules, and remember to add
toolbox
folder to it - Hugo: Use Jekyll shortcode rules, and remember to add
toolbox
folder to it
Github generates flat blogs server-side, so submodule breaks because it renames folder with commit. flat blogs are meant to be client-side, so there's a way to prevent github from rebuilding it server-side:
- force jekyll or hugo to generate flat blog on
docs/
folder, instead of default_site/
- Jekyll: add
destination: docs
onconfig.yml
- Hugo: add
publishDir = "docs"
onconfig.toml
- Jekyll: add
- push changes
- on github settings, tell githubpages to point to
docs/
folder instead