A simple Eleventy Starter Kit, my base for all new 11ty projects.
- Text Editor - VSCode Preferred
- Git Software
- Node JS - Download latest LTS
- Yarn
- Execute
git clone https://github.com/Anuvrat-NITSKM/website.git - Execute
cd website - Execute
yarn install - After that create a new branch
git checkout -b <your-branch-name> - Make changes to the files and execute
git add . - Execute
git commit -m "<brief-description-of-your-changes>" - Then at last execute
git push - Go to
https://github.com/Anuvrat-NITSKM/website/pullsin your browser and click onNew Pull Request - And select
<your-branch-name>andmainbranch and raise a pull request
Note: Whenever starting a new work always create a new branch from main branch
- Execute
git checkout main - Execute
git pull - Execute
git checkout -b <your-branch-name>
- https://mozilla.github.io/nunjucks/
- https://www.11ty.dev/docs/
- https://getbootstrap.com/docs/5.0/getting-started/introduction/
- https://sass-lang.com/documentation
(HTML CSS JS) https://developer.mozilla.org/en-US/docs/Web/Reference
To install the necessary packages, run this command in the root folder of the site:
yarn install- Run
yarn run devfor a development server and live reloading - Run
yarn run buildto generate a production build
- CSS Pipeline (Sass, CleanCSS)
- JS Bundling (Webpack)
- HTML Minification
- No external builds, everything runs through 11ty
Styling works with Sass. The main index file is in src/assets/styles/main.scss. Import any SCSS code you want in there; it will be processed and optimized. The output is in dist/assets/styles/main.css
styles shortcode can also be used within components to write sass.
Javascript can be written in ES6 syntax. The main index file is in src/assets/scripts/main.js. It will be transpiled to ES5 with babel, bundled together with webpack, and minified in production. The output is in dist/assets/scripts/main.js
- Store Images in the cloud (eg. firebase, imgur) and use eleventy-img to download and optimize images
- Powered By https://github.com/maxboeck/eleventastic