A Gatsby theme plugin for creating blogs from headless Ghost CMS.
Turn your Ghost blog into a lightning fast static website. This Gatsby theme is a frontend replacement of the Ghost handlebars engine featuring Novela theme skin and functionality. All content is sourced from a headless Ghost CMS.
This theme is being used at Draftbox. Get lightning fast, secure front-end for your WordPress or Ghost blog, in 5 minutes or less, without coding. For our fellow devs, we also provide code export feature.
Play with the Demo to get a first impression.
- Novela theme by Narrative
- SEO optimized
- Fully responsive
- Gatsby images
- Styled 404 page
- RSS Feed
- AMP Pages
- Contact Form
- Subscribe Form
- Social Sharing
- Composable and extensible
Head over to the starter repo to get up and running quickly!
If you want to add this blog theme to an existing site, follow these instructions:
Install the blog themeyarn add @draftbox-co/gatsby-ghost-novela-theme# ornpm install @draftbox-co/gatsby-ghost-novela-theme --save
Add the following configuration to your
gatsby-config.jsfile// gatsby-config.jsmoduleexports =plugins:resolve: `@draftbox-co/gatsby-ghost-novela-theme`options:siteConfig:siteUrl: ""postsPerPage: 12siteTitleMeta: "Built with Draftbox"siteDescriptionMeta:"Lightning fast, secure front-end for your WordPress or Ghost blog, without coding."shareImageWidth: 1000shareImageHeight: 523shortTitle: "Built with Draftbox"siteIcon: "favicon.png"backgroundColor: "#e9e9e9"themeColor: "#15171A"apiUrl: ""header:navigation:label: "Home"url: ""label: "Contact"url: ""footer:copyright: "Built with Draftbox"navigation:label: "Home"url: ""label: "Sitemap"url: ""label: "RSS"url: ""label: "Contact"url: ""label: "External Link"url: ""subscribeWidget:title: "Subscribe to Built with Draftbox"helpText: "Get the latest posts delivered right to your inbox."successMessage: "Thanks for subscribing to Built with Draftbox."socialLinks:twitter: ""facebook: ""instagram: ""linkedin: ""github: ""contactWidget:title: "Contact Built with Draftbox"successMessage: "We’ll get in touch with you soon."ghostConfig:development:apiUrl: ""contentApiKey: "9fcfdb1e5ea5b472e2e5b92942"production:apiUrl: ""contentApiKey: "9fcfdb1e5ea5b472e2e5b92942";
In the configuration shown above, the most important fields to be changed are
siteDescriptionMeta. Update at least those to fit your needs. Also make sure your
favicon.pngcan be found in folder
staticof your working directory.
Ghost Content API Keys
apiUrlvalue to the URL of your Ghost CMS site. Next, update the
contentApiKeyvalue to a key associated with the Ghost CMS site. A key can be provided by creating an integration within Ghost Admin. Navigate to Integrations and click "Add new integration". Name the integration appropriately and click create.
Start the development server. You now have a Gatsby site pulling content from headless Ghost.
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 Gatsby front-end becomes the source of truth for SEO.
- Arun Priyadarshi (@Gunnerforlife) – Draftbox
- Keyur Raval (@thandaanda) – Draftbox
- Shyam Lohar (@shyamlohar) – Draftbox
- Tanmay Desai (@tanmaydesai89) – Draftbox
PRs are welcome! Consider contributing to this project if you are missing feature that is also useful for others.