WordPress will soon release a REST API as a core feature. The code is currently available as a plugin so that WP contributors can iterate on it with real users without throwing it immediately into the codebase. (WordPress calls it a "Feature Plugin.") This is a Jekyll Plugin that will ingest data from a WordPress API and export Jekyll posts at the time the site is built. You can have the WordPress site running anywhere you want, even on a local web server. All you need to do is install the plugin, for now, and know where the API endpoint is (usually wp-json
).
The ultimate goal is a Jekyll installation where you can write posts in either the WordPress content editor or as Markdown files served on a Jekyll-built site.
_config.yml
under the wpApi
keyThe plugin currently supports ingesting posts and exporting the raw post content. And currently has some characters like pipes showing up in strange places. But, hey, we're just getting started! This is very much a work in progress and contributions and bits of advice are welcome.