Create an Eleventy website directly in your Repo.
- The latest version of 11ty is installed.
- An
.eleventyignore
file which ignores theREADME.md
file andassets
directory. - An
.eleventy.js
file which sets the output directory todocs
- perfect for GitHub Pages use. - A README.md file.
- A
partials
directory and all the partial.scss
files that I usually use. I use NodeSass to compile these. - An
assets
directory, I usually keep all my design and source files in here.
# Create Eleventy Site
- name: Create Eleventy site
run: |
mkdir eleventy-site
cd eleventy-site
npm install @11ty/eleventy
touch .eleventyignore
echo "REAMDE.md
assets/" > .eleventyignore
echo "module.exports = {
dir: {
output: "docs"
}
};" > .eleventy.js
echo "# Your Site Name" > REAMDE.md
mkdir assets
cd assets
echo "# Assets" > REAMDE.md
cd ../
mkdir partials
cd partials
echo "/* Reset */
* { box-sizing: border-box; }
html, body, ul, ol { margin: 0; padding: 0; }
p { margin: 0px; }
" > _reset.scss
echo "/* Base */" > _base.scss
echo "/* Layout */" > _layout.scss
echo "/* Modules */" > _modules.scss
echo "/* Pages */" > _pages.scss
echo "/* Main */
@import 'reset';
@import 'base';
@import 'layout';
@import 'modules';
@import 'pages';
" > main.scss
cd ../
This project is released under the MIT License.