gatsby-starter-hello-friend | Pretty basic starter for Gatsby | Theme library
kandi X-RAY | gatsby-starter-hello-friend Summary
kandi X-RAY | gatsby-starter-hello-friend Summary
Pretty basic starter for Gatsby that covers all of the essentials. All you have to do is start typing!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gatsby-starter-hello-friend
gatsby-starter-hello-friend Key Features
gatsby-starter-hello-friend Examples and Code Snippets
Community Discussions
Trending Discussions on gatsby-starter-hello-friend
QUESTION
I'm working with my first Gatsby template (Hello Friend by Panr), and I have absolutely no experience with React.js.
I am trying to understand some of the logic of the template's design in gatsby-node.js
and gatsby-config.js
- specifically:
From gatsby-config.js
:
ANSWER
Answered 2020-Jan-17 at 23:30Yes, there're two content categories right now and only the posts are listed by default.
Sorting is probably quite naive, because at the time I was writing the starter, I didn't know any good plugin to handle separate paginations (prev / next post or page) for each content types, so I made my own logic for that. sortedPages
is an array of [...typeA, ...typeB]
and later each item is checked for having siblings to create its own navigation (prev / next).
If you want to create another content type, you can do this in the same way it's defined in the starter. Just add another gatsby-source-filesystem
plugin instance, like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gatsby-starter-hello-friend
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page