No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefan 66d726eb54
Some checks failed
Build and Deploy to Neocities / build (push) Has been cancelled
Pin the template to the last working build and restore matching content
- Pin chobble-template to bdbc160 (2025-11-16), the commit CI last built and deployed successfully. Template main has since moved to Bun and block-based pages, which this repo's content is not migrated to.

- Restore the pre-migration content (layouts, front matter, tag pages, snippets, images), which is what the pinned template understands.

- Inject Formspark/Botpoison into _data/config.json, which is where this template's contact form reads them; the sed against site.json had been inert since the config split, leaving the contact page showing a 'Formspark ID Missing' warning.

- Build on Node LTS instead of latest, which was resolving to an alpha release.
2026-11-14 15:30:58 +00:00
.forgejo/workflows Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
.github/workflows Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
_data Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
assets/fonts Upload missing monserrat 400 weight fonts 2025-04-07 21:37:26 +00:00
bin Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
categories Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
css Consistent thumbnail link sizes 2025-05-27 17:49:55 +01:00
events Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
images Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
news Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
pages Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
products Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
reviews Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
snippets Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
team Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
.gitignore Re-add flake.lock 2025-04-06 12:36:54 +01:00
.pages.yml Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +00:00
README.md Pin the template to the last working build and restore matching content 2026-11-14 15:30:58 +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!