A starter repository built with Eleventy static site generator, adapted from the sustain Jekyll theme.
To get your own instance of this 11ty starter project cloned and deploying to Netlify very quickly, just click the button below and follow the instructions.
Good question. Here's what it will do...
- Netlify will clone the Git repository of this project into your Github or GitLab account. It will be asking for permission to add the repo for you.
- We'll create a new site for you in Netlify, and configure it to use your shiny new repo. Right away you'll be able to deploy changes simply by pushing changes to your repo.
- That's it really.
git clone https://github.com/verythorough/eleventy-sustained.git my-blog-name
cd my-blog-name
Specifically have a look at .eleventy.js
to see if you want to configure any Eleventy options differently.
npm install
npx eleventy
Or serve and build automatically when a template changes:
npx eleventy --serve
Or in debug mode:
DEBUG=* npx eleventy
posts/
has the blog posts.- Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in
.eleventy.js
->templateFormats
. - Anything in the
static/
folder will be copied without modification to the output (while keeping the same directory structure). - The blog post feed template is in
feed/feed.njk
. This is also a good example of using a global data files in that it uses_data/site.json
. - This example uses two layouts:
_includes/layouts/base.html
: the top level HTML structure, using Liquid templating_includes/layouts/post.html
: the blog post template (wrapped intobase.njk
)