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

9. Adding More Content

Joe Attardi1 
(1)
Billerica, MA, USA
 
The index page currently has a hard-coded hero image and tagline, as shown in Figure 9-1.
../images/502348_1_En_9_Chapter/502348_1_En_9_Fig1_HTML.jpg

Figure 9-1. The current index page

In this chapter, we’ll make this content configurable through the CMS application.

The contentKey field

As we’ve seen earlier, Netlify CMS stores all its data in Markdown files. We will configure some new content for the index page that will be stored in a Markdown file. There’s a slight problem, however. In gatsby-node.js we are querying for all the Markdown files to generate ...

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.