Skip to content

lexoyo/11ty-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a template you can use to create a site with 11ty and Silex website builder with the Stastic instance provided by Internet 2000 agency (more info about this fork of Silex here)

It conains an action to deploy on github pages automatically

Here is how to start:

  1. Fork this repository or click "use this template" (/!\ be sure to select "Include all branches")
  2. [If you host on github pages] Create a deploy token here with the access write public_repo. Then go to the settings of the website, in the "secret" section create a new secret, call it DEPLOY_TOKEN and paste the token as its value
  3. [Or if you deploy to Netlify] Add the repo to Netlify as a new website
  4. [If you host on github pages] In the settings of the website, "secret" section, create a new secret, call it BASE_URL and set its value to the name of your repository (e.g. 11ty-boilerplate)
  5. Create a website with Stastic designer based on any template
  6. Publish your site from Stastic designer to github as 11ty layout
  7. Edit the file index.md, add layout: YOUR_PAGE_NAME_IN_STASTIC in the front matter like this:
---
permalink: /
layout: home
---

any content here

don't forget to replace `home` with the page name in Stastic