11ty / eleventy-base-blog

A starter repository for a blog web site using the Eleventy static site generator.
https://demo-base-blog.11ty.dev/
MIT License
1.25k stars 617 forks source link

Eleventy + Contentful #65

Closed danpantinople closed 4 years ago

danpantinople commented 4 years ago

Hi, so sorry I had to post here. I'm not too good with JS. I just need help setting up contentful on this. I've already connected contentful but how do I have my contentful posts populate the posts collection?

shanerobinson commented 4 years ago

This example uses DatoCMS and it's GraphQL API with 11ty, but the concept would be the same with Contentful's GraphQL API: https://www.webstoemp.com/blog/headless-cms-graphql-api-eleventy/

zachleat commented 4 years ago

Poke around in the starters, there are a few that mention Contentful! https://www.11ty.dev/docs/starter/