A minimal demonstration of how to integrate 11ty with the WordPress API
The wp-11ty project is a minimal example that demonstrates how to use Eleventy as a static front-end for a WordPress website by utilizing the WP API. It allows users to display a clickable list of posts from Rolling Stone and generate a static page for each post. The purpose of this project is to leverage the developer experience and performance improvements of Eleventy while maintaining a user-friendly experience for content authors.
To install the wp-11ty theme, follow the steps below:
npm install
localhost:8080 by executing the following command:npm start
Alternatively, you can also access the wp-11ty project on CodeSandbox.
The wp-11ty project offers a minimal example of how to use Eleventy as a static front-end for a WordPress website. By leveraging the WP API, it allows users to display and generate static pages for posts from Rolling Stone. This approach provides the benefits of Eleventy’s developer experience and performance improvements while still maintaining a user-friendly experience for content authors. The project can be easily installed and deployed on various static hosting platforms, making it suitable for a wide range of websites.