Vpershe.com is a website for sex education for teenagers. Here they can find interactive and verified information about the body, health or ask a question.
If you would like to contribute - you're always welcome. Just leave a me a note
For an overview of the project structure please refer to the Gatsby documentation - Building with Components.
Make sure that you have the Gatsby CLI program installed:
npm install --global gatsby-cli
Then you can run it by:
cd vpershe
npm run develop
Vpershe as any other Gatsby project starts in gatsby-node.js. It does the following:
- Prepares the images to be used with Sharp plugins (it resizes and optimizes images)
- We load all the pages and processes them
** we group posts by tags
** for each post and page we trigger
createPage
with page url,component
- template that will render the page andcontext
- some additional params for the component.
Pages folder contains pages. Those are generated by default. No need to trigger them in gatsby-node.js