Skip to content

A starter 11ty project that uses Sass and has an example of using a collection.

Notifications You must be signed in to change notification settings

stein-bmcc/eleventy-sass

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eleventy Sass Starter

This is a minimal eleventy starter designed to have a similar structure to a basic web site. The repo owes a big thanks to Stephanie Eckles's Smol Eleventy Starter and 11ty Sass Skeleton repositories.

Quick Start

  1. Generate a repo from this template which will copy this project into your own new repo. Note: You must be signed in to GitHub for this link to work

    The other option is to visit the repo directly and clone it. Generating is a smoother process and is recommended over direct cloning.

  2. Once you have a copy of the repository on GitHub, you will need to edit it. You can use Codespaces or open it on your local computer. There are a few options.

    1. Use Codespaces. This is available from the green code button on the home page of your GitHub Repository. This is a cloud editor so you don't need to have a copy on your computer or an editor installed. Just a browser.
    2. Use the Terminal – see this GitHub tutorial
    3. Use an editor like VS Code – see more info on VS Code and GitHub
    4. Use a program like GitHub Desktop for Windows/mac or Git Tower.
  3. In your Editor, open the repository folder if you didn't already in the previous step. Remember to always open the folder and not individual files!

  4. Open the Terminal and type, run npm install to install 11ty module and other dependent modules (you should see a new node_modules folder and package-lock.json file).

  5. Then, also in the Terminal, run npm start to run 11ty in serve mode which will create a local server including hot-reload via BrowserSync. You will see a link to the localhost url in the terminal.

  6. Open package.json and adjust the author values to your name. There are other things you can change, but maybe hold off until you know more about how package.json works.

  7. Edit index.md to change the home page, and then create content within src folder.

  8. If you are converting an existing site you can:

    1. Copy your CSS, JS and images into the respective folders
    2. Edit src/_includes/base.njk to inclue the parts of your site that are on every page (ie header, footer, links to css files, links to js files.)
    3. Create Markdown files in the src folder for your HTML files.

Learn More About Eleventy

Site and Longer Guides

About

A starter 11ty project that uses Sass and has an example of using a collection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 83.2%
  • Nunjucks 11.7%
  • JavaScript 5.1%