One9x Pages · template

Eleventy

This page is the live output of a template repository. Copy it and you have a Eleventy site that deploys itself to a URL of your own on every push.

Use this template → View the repo

Start from it

  1. Use this template on GitHub to get your own copy.
  2. Create a site and a token:
    $ one9x pages create mysite
    $ one9x tokens create "github actions"
  3. In the new repo, under Settings → Secrets and variables → Actions, add the variable ONE9X_SITE (mysite) and the secret ONE9X_TOKEN.
  4. Push. A pull request gets a preview URL; main goes live.

Or deploy what you already have

$ npx @11ty/eleventy
$ one9x pages release ./_site --site mysite --deploy

What this template sets up

Build commandnpx @11ty/eleventy
Output folder_site
SPA fallbacknot used — a real HTML file per route
CIpreview URL on every pull request, publish on main