Skip to content
A scaffold for a quick start building with the Eleventy SSG
Branch: master
Clone or download
philhawksworth Merge pull request #18 from philhawksworth/dependabot/npm_and_yarn/lo…
…dash.template-4.5.0

Bump lodash.template from 4.4.0 to 4.5.0
Latest commit 67f0be3 Jul 23, 2019

README.md

EleventyOne

Netlify Status

Phil's first port of call when starting another project using Eleventy.

This project scaffold includes:

Eleventy screenshot

Instructions

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.

Deploy to Netlify

Wait, what happens when I click that button?

Good question. Here's what it will do...

  1. Netlify will clone the git repository of this project into your Github account. It will be asking for permission to add the repo for you.
  2. 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.
  3. That's it really.

Prerequisites

Running locally

# install the dependencies
npm install

# External data sources can be stashed locally
npm run seed

# It will then be available locally for building with
npm run start

Add some Netlify helpers

Netlify Dev adds the ability to use Netlify redirects, proxies, and serverless functions.

# install the Netlify CLI in order to get Netlify Dev
npm install -g netlify-cli

# run a local server with some added Netlify sugar in front of Eleventy
netlify dev

A serverless functions pipeline is included via Netlify Dev. By running netlify dev you'll be able to execute any of your serverless functions directly like this:

  • /.netlify/functions/hello
  • /.netlify/functions/fetch-joke

Redirects and proxies

Netlify's Redirects API can provide friendlier URLs as proxies to these URLs.

  • /api/hello
  • /api/fetch-joke
You can’t perform that action at this time.