See this template in action at:
- tradesperson-example.chobble.com (Neocities)
- example-bunny.chobble.com (Bunny)
- example.chobble.com (Neocities)
Want a website based on this template? Clone this repo, or hit me up at Chobble.com.
This template should let you get started with the Eleventy static site builder on NixOS / Nix, really easily.
Featuring common business website features like:
- News
- Reviews
- Products
- Galleries
- A contact form
- Heading images
And Nix'y features like:
- direnv support via
flake.nix
- rundirenv allow
- or run
nix develop
if you don't have direnv nix-build
support usingflake-compat
serve
shell script to run Eleventy and SASS locallybuild
shell script to build the site into_site
And Eleventy features like:
- Canonical URLs
- A directory to store favicon cruft
- A
_data/site.json
metadata store - An
collection.images
collection of the files insrc/images
If you want to change the packages in packages.json
, here's the steps:
- Remove all
nodeModules
lines fromnode-deps.nix
andflake.nix
- Use
direnv reload
ornix develop
to get a dev shell - Add the new packages to
node-deps.nix
and rundirenv reload
to re-buildpackages.json
- Run
yarn -l
to create a newyard.lock
- Re-add the
nodeModule
lines tonode-deps.nix
andflake.nix
This is a little fiddlier:
- Remove all
nodeModules
lines fromnode-deps.nix
andflake.nix
- Copy the generated
package.json
to your clipboard - Delete
package.json
to remove the symbolic link - Paste your clipbard back into a new
package.json
- Run
yarn upgrade
to create a newyarn.lock
and updatepackage.json
- Copy those new version numbers from
package.json
tonode-deps.nix
- Re-add the
nodeModule
lines tonode-deps.nix
andflake.nix
..I do intend to make those steps simpler some day. If you've got ideas of how I could, please contact me!