- Eleventy
- Tailwind
- Wordpress CMS for page content
- iCal feed for calendar events and pages
See _src/_data
for specific imports
# Make sure we're all running the same Node version
nvm use
# Install packages
npm install
# Get your own env file (see below for details)
cp .env.example .env
# Let's get going (warning the first run will take a bit of time to pull in and cache all the data and images)
npm run dev
API_BASE
- Base URL for Wordpress APIEVENTS_ICAL_FEED
- iCal feed for where we'll be pulling all the events fromENABLE_11TY_CACHE
- When enabled (TRUE
) 11ty will pull in data just once and then store it, this will make the site build a bit quicker. Don't enable in production.
If WordPress is behind some form of basic auth then you'll also need to add in the auth details to the env too. These are optional.
CMS_AUTH_USR
CMS_AUTH_PWD
There is a small number of tests (which should grow)
# Run all the tests
npm test
# Run a specific test:
npm test -- -t 'one off events'