__ __
'.'--.--'.-'
.,_------.___, \' r'
', '-._a '-' .'
'. '-'Y \._ /
'--;____'--.'-,
snd /..' '''
- Node, v18.x.x
- npm
# Install packages
> npm install
# Start the development server
> npm start
# Start the production server
> open http://localhost:8000
- This is a Gatsby.js project
- Styles are written with Tailwind CSS as the CSS framework
- Site content is editable in YAML and
/src/contents
directorysrc/contents/homepage.yml
: contains the Homepage contentgatsby-config.js
: contains site wide meta information, such as menu links, and Gatsby plugins
src
: contains all the codecomponents
: contains React componentscontents
: contains site contenthooks
: contains React shared hooksimages
: contains all the public imagespages
: contains all the front-end pagesstyles
: contains the css stylesheets
Other Gatsby files to know:
gatsby-config.js
: contains site wide meta information, such as menu links, and Gatsby pluginstailwind.config.js
: contains TailwindCSS configuration and extending properties
- To dive straight into code samples, head to our documentation. In particular, check out the Guides, API Reference, and Advanced Tutorials sections in the sidebar.
Build, Deploy, and Host On Netlify
The fastest way to combine your favorite tools and APIs to build the fastest sites, stores, and apps for the web. And also the best place to build, deploy, and host your Gatsby sites.
To create a new page in Gatsby, this project has been set up to work from Markdown
Decide on the url, e.g. "community-resources"
- Duplicate the
pages/example.js
page and rename the file to the url you have decided on (e.g.community-resources.js
) - Replace the related content in this file
- Replace the
const Example
on line 9 e.g.const CommunityResources
a - Repalce the query on line 34 with your file name e.g.
quuery CommunityResourcesQuery
- Replace teh slug param on line 35 wit your slug e.g.
eq: "/community-resources"
- Replace
export default Example
line at the end of the file with your url name e.g.export default CommunityResources
- Duplicate the
contents/example.md
file - Rename the file to match your url e.g.
community-resources.md
- Replace the slug parameter with your desired url e.g.
slug: "/community-resources"
- If you now use the
npm start
command, if you've done it right you will be able to see your new url in your browser