Access the Ghost API in Eleventy
The eleventy-plugin-ghost is a powerful tool that seamlessly integrates Ghost content into Eleventy. Perfect for developers looking to pull in blogs or other types of content, this plugin simplifies the process and enhances your site with dynamic data. It works well with Eleventy v1.0.0 and above, making it a valuable addition to your development toolkit.
With straightforward installation and robust functionality, this plugin allows users to access various types of content through a global variable. The ability to handle posts, pages, tags, and authors efficiently means building a content-rich site is not only easier but also far more organized.
Simple Installation: Install via npm and effortlessly add configurations to your .eleventy.js file with minimal setup.
Global Data Access: Utilize a global ghost variable to access all relevant data, including posts, pages, tags, and authors, simplifying data management.
Flexible API Integration: Out-of-the-box support for the latest Ghost API, with options to specify different versions as needed.
Admin API Access: Option to use the Ghost Admin API, allowing for retrieval of draft posts and pages, as well as detailed author data.
Efficient Caching: Data is cached with @11ty/eleventy-fetch for one minute, ensuring fast builds while still reflecting the latest changes in your content.
Custom Post Filtering: Includes a filterPosts function which enables filtering of posts by various attributes, making it easier to curate content.
Internal Tag Support: Post retrieval includes internal tags, which are filtered out for public visibility, allowing for better content organization without cluttering the front-end.
Comprehensive Documentation: Well-defined setup and usage guidelines, including examples, make it easy for developers to quickly get started and understand functionality.