Essential Files

Setting up the GitHub Action

We followed these guides:

Be sure to ensure that the source branch under Settings/Pages is set to gh-pages.

Testing Locally

See Eleventy usage for more details.

  1. Setup eleventy locally
npm install @11ty/eleventy
  1. Serve the site locally to your local brower.
npx @11ty/eleventy --serve
  1. Note that the site rebuilds via GitHub action automatically when a branch is merged.

Resolving GitHub Dependabot Alerts

Use the npm update and npm audit commands to update any JavaScript libraries that 11ty depends on.

npm update
npm audit fix

This recipe should result in updates to package-lock.json and package.json, which should be checked into git and merge to the main branch.

It may be necessary to use npm audit fix --force. If so, be sure to double check that the pages still render correctly.