Skip to content

๐Ÿ— Starter project for Eleventy-powered static sites

Notifications You must be signed in to change notification settings

huijing/eleventy-bp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Eleventy Boilerplate

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. ยฏ\_(ใƒ„)_/ยฏ

Local development

  1. 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
  2. Install dependencies with your package manager of choice (doesn't necessarily have to be npm)

    npm install
  3. Start the development server. All changes will be processed and your site will automatically reload on http://localhost:8080

    npx @11ty/eleventy --serve
  4. Remember to replace the information in the site.json file and put in your own favicon.

Potential questions on src folder structure

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. ยฏ\_(ใƒ„)_/ยฏ

Helpful links

About

๐Ÿ— Starter project for Eleventy-powered static sites

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published