georapbox / gatsby-json-pages-example

Example of how to generate Gatsby.js pages from a json file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gatsby-json-pages-example

This site shows an example of how to generate pages in Gatsby from a json file. In this site, the data for pages is contained in src/data.json, and the template that renders the data is templates/page.jsx.

Running

To run the example, clone the repo, then:

npm install
make develop

The pages specified in data.json are now accessible at localhost:8000/page-1, localhost:8000/page-2.

About

Example of how to generate Gatsby.js pages from a json file

License:MIT License


Languages

Language:CSS 70.6%Language:JavaScript 28.8%Language:Makefile 0.5%