Skip to content

From now through to September 17, you’ll have the opportunity to win sweet prizes by building and sharing GitHub Actions that benefit open source.

License

Notifications You must be signed in to change notification settings

DanCanetti/Create-Eleventy-Site

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

This project is now archived


Create Eleventy site

Create an Eleventy website directly in your Repo.

GitHub license GitHub release GitHub commits GitHub issues GitHub stars

What is created

  • The latest version of 11ty is installed.
  • An .eleventyignore file which ignores the README.md file and assets directory.
  • An .eleventy.js file which sets the output directory to docs - 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.

Usage

# 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 ../

License

This project is released under the MIT License.

About

From now through to September 17, you’ll have the opportunity to win sweet prizes by building and sharing GitHub Actions that benefit open source.

Resources

License

Stars

Watchers

Forks

Packages

No packages published