Skip to content
A simple bash script for hosting 11ty sites on Github pages.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Using Github pages to host Eleventy sites

A simple bash script that:

  • Removes an existing docs/ directory
  • Creates a new 'docs/' directory by copying the '_site/' directory
  • Adds files to the commit
  • Requests a commit message
  • Commits and pushes the changes


Drop this .sh file into a /bin/ directory in the root of your project.


Run sh bin/ from the root of your project.

You can’t perform that action at this time.