Generate pages for all the books in website
#279 opened on Oct 18, 2020
Repository metrics
- Stars
- (10,904 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
The task is to generate a unique page for each and every book present in our list.
The page should show the name of the book, year of publishing, description etc. Basically, all the details present in the book card would be shown in thhe page. The user can access the page by clicking on "Show more" in the book card.
The URL of the page can be in this format
/book/name-of-the-book-by-author-name
You don't have to create each and every page manually. You can programmatically generate pages in Gatsby
https://www.gatsbyjs.com/docs/creating-and-modifying-pages/
The data for the pages lives in app/src/data/books.json
We are already using Gatsby Pages in the website. Take a look at how category pages are generated to see how its done.