Thanks to visit codestin.com
Credit goes to github.com

Skip to content

jhackett1/wp-11ty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-11ty

A very minimal example showing how to use Eleventy as a static front-end for a WordPress website, using the WP API.

It displays a clickable list of posts from Rolling Stone, and generates a static page for each one.

Why do this?

For smaller sites, you might prefer to fully convert your content to markdown and manage it fully with 11ty. For larger sites with non-technical users, that isn't practical.

Using the API lets you benefit from the developer experience and performance improvements of 11ty, but maintain a good experience for content authors.

Developing

You need node.js and npm installed:

npm i
npm start

It should be on localhost:8080

Alternatively check it out on CodeSandbox right now.

Running it on the web

It's suitable for any static hosting, including Netlify, Vercel, S3, etc.

About

A minimal demonstration of how to integrate 11ty with the WordPress API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published