No description
Find a file
2025-05-27 18:08:54 +01:00
.forgejo/workflows Build with node 2025-04-15 22:29:28 +01:00
.github/workflows Don't cancel in progress 2025-04-27 21:01:19 +01:00
_data Smaller gallery images 2025-05-06 22:32:42 +01:00
assets/fonts Upload missing monserrat 400 weight fonts 2025-04-07 21:37:26 +00:00
bin Update theme 2025-05-06 22:29:19 +01:00
categories Update image paths and bin folder 2025-04-27 18:27:36 +01:00
css Consistent thumbnail link sizes 2025-05-27 17:49:55 +01:00
events Update events/2025-06-20-summer-expo.md (via Pages CMS) 2025-04-27 21:09:47 +00:00
images Create images/pexels-heyho-7745931(1).jpg (via Pages CMS) 2025-05-27 16:29:16 +00:00
news Update image paths and bin folder 2025-04-27 18:27:36 +01:00
pages Add events page 2025-04-27 22:11:00 +01:00
products Fix name / value 2025-05-27 18:08:54 +01:00
reviews Much simpler flake, move src/* up a directory 2025-04-05 23:30:44 +00:00
snippets Move template footer notice to footer-content.md 2025-04-07 12:18:59 +01:00
team Update image paths and bin folder 2025-04-27 18:27:36 +01:00
.gitignore Re-add flake.lock 2025-04-06 12:36:54 +01:00
.pages.yml Fix name / key 2025-05-27 17:45:19 +01:00
README.md Link to Bunny example 2025-04-07 08:44:49 +00:00

The Chobble Template: Tradesperson Example

See this template in action at:

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 - run direnv allow
  • or run nix develop if you don't have direnv
  • nix-build support using flake-compat
  • serve shell script to run Eleventy and SASS locally
  • build 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 in src/images

Changing Packages

If you want to change the packages in packages.json, here's the steps:

  • Remove all nodeModules lines from node-deps.nix and flake.nix
  • Use direnv reload or nix develop to get a dev shell
  • Add the new packages to node-deps.nix and run direnv reload to re-build packages.json
  • Run yarn -l to create a new yard.lock
  • Re-add the nodeModule lines to node-deps.nix and flake.nix

Upgrading Packages

This is a little fiddlier:

  • Remove all nodeModules lines from node-deps.nix and flake.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 new yarn.lock and update package.json
  • Copy those new version numbers from package.json to node-deps.nix
  • Re-add the nodeModule lines to node-deps.nix and flake.nix

..I do intend to make those steps simpler some day. If you've got ideas of how I could, please contact me!