Deploy & Collaborate

Hosting

GitHub Pages

To publish to GitHub Pages, first connect your GitHub account to Siteleaf. You can choose the repository you’re using, domain (by default it will use username.github.io/repo), and branch (gh-pages by default).

The repository you use must already exist. To make things easier, we suggest that you put your theme files on the master branch and the published site on the gh-pages branch.

For help with GitHub Pages, check out their help page.

Machine users

If you’re uncomfortable with giving Siteleaf permission to all of your GitHub repositories, you can avoid this by creating a machine user. This is a new GitHub user that you create that will have access to only the repositories you want Siteleaf to also have access to. When you connect GitHub to Siteleaf, use this user instead, and Siteleaf will only have access to those repositories.

Configuring GitHub Pages

There are a few pieces of site metadata that you can override:

github: [metadata]
kramdown:
  input: GFM
  hard_wrap: false
gems:
  - jekyll-coffeescript
  - jekyll-paginate

There are also a few settings that you cannot override:

lsi: false
safe: true
source: [your repo's top level directory]
incremental: false
highlighter: rouge
gist:
  noscript: false

Amazon S3

To publish to Amazon S3, you’ll first need your access key and secret key. You can either use existing keys or create an Identity and Access Management user.

You can use an existing bucket, or create a new one. Make sure you take note of the region!

Configuring IAM permissions

To secure your Amazon S3 connection to a single bucket, here is the most restrictive IAM permissions required to publish your site:

For more information on Amazon S3, take a look at their documentation.

Rackspace Cloud Files

To publish to Rackspace Cloud Files, you’ll need your Rackspace username and an API key, which can be found in your Account Settings. You can use an existing container, just make sure you know which region it is in.

For more help with Rackspace Cloud Files, see their documentation.

FTP or SFTP

If you’d like to use your own server, you can use FTP or SFTP. Make sure you know the host, port, username, and password (or SSH key), as well as the path you’d like to compile to.

Common hosts that support FTP and SFTP are:

Help improve this page