© Joe Attardi 2020
J. AttardiUsing Gatsby and Netlify CMShttps://doi.org/10.1007/978-1-4842-6297-9_6

6. Sourcing Blog Data

Joe Attardi1 
(1)
Billerica, MA, USA
 

Gatsby is extremely flexible and customizable. As mentioned in Chapter 2, one of the features of Gatsby is that it can dynamically create pages from data. In this chapter, we’ll install some plugins and write some JavaScript code in our Gatsby site to load the blog post data and create a list of entries on the main page.

Gatsby plugin configuration

Gatsby plugins are configured in the main configuration file, gatsby-config.js. This file contains a plugins array. Each element of the plugins array can be either a simple string specifying the name of a plugin (in which case it will use the default ...

Get Using Gatsby and Netlify CMS: Build Blazing Fast JAMstack Apps Using Gatsby and Netlify CMS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.