A starter template to build websites with Ghost & Eleventy
# From Source git clone https://github.com/TryGhost/eleventy-starter-ghost.git cd eleventy-starter-ghost
Then install dependencies
Start the development server
You now have a completely static site pulling content from Ghost running as a headless CMS.
By default, the starter will populate content from a default Ghost install located at https://eleventy.ghost.io.
To use your own install, edit the
.envconfig file with your credentials. You can find your
contentApiKeyin the "Integrations" screen in Ghost Admin. The minimum required version for Ghost is
2.10.0in order to use this starter without issues.
The starter contains three config files specifically for deploying with Netlify. A
netlify.tomlfile for build settings, a
headers.njkfile with default security headers set for all routes (builds to
redirects.njkto set Netlify custom domain redirects (builds to
To deploy to your Netlify account, hit the button below.
Content API Keys are generally not considered to be sensitive information, they exist so that they can be changed in the event of abuse; so most people commit it directly to their
.envconfig file. If you prefer to keep this information out of your repository you can remove this config and set Netlify ENV variables for production builds instead.
Once deployed, you can set up a Ghost + Netlify Integration to use deploy hooks from Ghost to trigger Netlify rebuilds. That way, any time data changes in Ghost, your site will rebuild on Netlify.
You can disable the default Ghost Handlebars Theme front-end by enabling the
Make this site privateflag within your Ghost settings. This enables password protection in front of the Ghost install and sets so your Eleventy front-end becomes the source of truth for SEO.
# Build the site locally yarn build
Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.