Una plantilla de inicio para construir sitios web completamente estáticos con Ghost & Undenty
Demo: https://eleventy.ghost.org
# From Source
git clone https://github.com/TryGhost/eleventy-starter-ghost.git
cd eleventy-starter-ghost
Luego instale dependencias
yarn
Iniciar el servidor de desarrollo
yarn start
Ahora tiene un sitio completamente estático que saca contenido de Ghost Running como un CMS sin cabeza.
De manera predeterminada, el arrancador llenará contenido de una instalación de fantasma predeterminada ubicada en https://eleventy.ghost.io.
To use your own install, edit the .env
config file with your credentials. You can find your contentApiKey
in the "Integrations" screen in Ghost Admin. The minimum required version for Ghost is 2.10.0
in order to use this starter without issues.
El arrancador contiene tres archivos de configuración específicamente para implementar con NetLify. A netlify.toml
file for build settings, a headers.njk
file with default security headers set for all routes (builds to /_headers
path), and redirects.njk
to set Netlify custom domain redirects (builds to /_redirects
path).
Para implementar en su cuenta de Netlify, presione el botón a continuación.
Las claves API de contenido generalmente no se consideran información confidencial, existen para que puedan cambiarse en caso de abuso; so most people commit it directly to their .env
config file. Si prefiere mantener esta información fuera de su repositorio, puede eliminar esta configuración y establecer las variables Netlify Env para las compilaciones de producción.
Una vez implementado, puede configurar una integración Ghost + Netlify para usar los ganchos de implementación de Ghost para activar las reconstrucciones de Netlify. De esa manera, en cualquier momento cambia los datos en Ghost, su sitio reconstruirá en Netlify.
You can disable the default Ghost Handlebars Theme front-end by enabling the Make this site private
flag within your Ghost settings. This enables password protection in front of the Ghost install and sets <meta name="robots" content="noindex" />
so your Eleventy front-end becomes the source of truth for SEO.
# Build the site locally
yarn build
Copyright (c) Fundación Ghost 2013-2025 - Lanzado bajo la licencia MIT.