Gatsby site from scratch #15: Listing all your posts on the homepage

preview_player
Показать описание
Gatsby's implementation of GraphQL has some cool functionality out of the box, like sorting by date, and date formatting. It also has estimated time to read through the markdown plugin and that allows us to easily put together some post snippets on our homepage to give our readers a preview of what our site has going on. That's what we build out in this episode.

00:00 - Intro
00:47 - Cleaning up the homepage
01:39 - Building the query
11:17 - Using the query on the homepage
15:17 - Using the gatsby Link tag
17:53 - Wrap-up

Previous video in the series:

Next video in the series:

Follow Jimmy Cleveland's doings:

#gatsbyjs #graphiql #graphql
Рекомендации по теме
Комментарии
Автор

Hi Jimmy, another very cool and very informative video there. Thank you for that! I'd like to ask you, let's say that I have 10 post, but I just want to list the 3 of them(the most recent) in my home page and have a button "See all the posts" that gonna bring the user to the Blog page with all the posts... How would it look? How can we query it in GraphQL? If you could cover this feature it would be very helpful! Cheers!!

rosaclovis