A simple Eleventy starter project with separate src/dist directories and a few npm scripts.
This is the project layout I typically set up when starting a new Eleventy project.
Clone the repo and install npm dependencies
git clone https://github.com/jevets/eleventy-starter.git new-project
cd new-project
yarn && yarn dev
- Run
yarn devfor local development server. - Run
yarn buildto compile static output. - Templates are in the
srcdirectory. - Output gets compiled into the
distfolder.