Basic starter for the Eleventy static site generator created by Zach Leatherman. It's called Eleventy Boilerplate because all the other names were taken already. ยฏ\_(ใ)_/ยฏ
-
Clone a clean copy of the repository without its history.
# clone the repo without its full history. git clone --depth 1 https://github.com/huijing/eleventy-bp.git PROJECT_NAME cd PROJECT_NAME # remove existing git information and create a new repository. rm -rf .git && git init
-
Install dependencies with your package manager of choice (doesn't necessarily have to be
npm
)npm install
-
Start the development server. All changes will be processed and your site will automatically reload on http://localhost:8080
npx @11ty/eleventy --serve
-
Remember to replace the information in the site.json file and put in your own favicon.
If you look closely, it might be weird that the Javsacript folder is inside _includes while the rest of the assets are outside. Honestly, it's because I wanted to use @5t3ph's eleventy-plugin-sass-lightningcss to process my Sass files as well as use Terser for JS minification.
The guide for JS minification was found here, which structured the asset folder within _includes. I'm not smart enough to rewrite it all, so I just combined both. At least the output is all in the same place. ยฏ\_(ใ)_/ยฏ