This repo contains how you can use Contentful CMS with Gatsby to manage content in Contentful CMS while generating static site with Gatsby.
-
Create your account in Contentful.
-
Create content model following types :-
-
Title
- Add
Title
model in two filed nametitle
andshort_description
- Add
-
Heading
- Add
Heading
model in two filed nametitle
anddescription
- Add
-
Service
- Add
Service
model in two filed namename
anddescription
- Add
-
About
- Add
About
model in two filed nametitle
anddescription
- Add
-
Team
- Add
Team
model in four filed namename
,position
,description
andimage
- Add
-
-
Create Content following types :-
-
Select content type
Title
- Add
title
filed in title andshort_description
filed in description then click on published
- Add
-
Select content type
Heading
- Add
title
filed in title anddescription
filed in description then click on published
- Add
-
Select content type
Service
- Add
name
filed in name anddescription
filed in description then click on published - create three entries (name and description)
- Add
-
Select content type
About
- Add
name
filed in name anddescription
filed in description then click on published
- Add
-
Select content type
Team
- Add
name
filed in name,position
filed in position,description
filed in description andimage
filed in import image then click on published - create four entries (name, position, description and image)
- Add
-
- Clone the repo
- Open your terminal
- Run
npm install
- Open contentful
- click on
Settings
menu - click on
API keys
- click example key 1
- copy
Space ID
andContent Delivery API - access token
- click on
- repo in open gatsby-config.js file
- find
gatsby-source-contentful
and paste yourspaceId
in your Space ID andaccessToken
in your Content Delivery API - access token - run
npm run develop
ORgatsby develop
- Browser in check
http://localhost:8000/
We have created 14+ Laravel packages and invested a lot of resources into creating these all packages and maintaining them.
You can support us by either sponsoring us or buying one of our paid products. Or help us by spreading the word about us on social platforms via tweets and posts.
You can also check out our other paid products on CodeCanyon.
Become a sponsor and get your logo on our README on Github with a link to your site.
Become a backer and get your image on our README on Github with a link to your site.
Also, Do not forget to add your website to Made with InfyOm Generator List list.
If you discover any security-related issues, create an issue using the issue tracker.
The MIT License (MIT). Please see License File for more information.