Kick off your blog with this repository, feel free to use it for your own.
Creates a static website that can be hosted in a serverless architecture using a headless CMS (Gatsby)
Stack
-
Gatsbyjs
- graphql
- image processing
- mdx
- font loader / icons
- helmet
- typescript
- Styled components
- Rebassjs
- functional typescript eslint rules
-
sanity.io (for content editing)
-
Page content layout is stored in MDX (JSX+markdown) files
-
Content/blog is stored at https://sanity.io (free account for small websites)
To start developing:
yarn start
or
gatsby develop
To edit content such as your personal information, resume, projects, educaction etc.
cd sanity
yarn start
or
sanity start
Currently my personal sanity information is configured, this is public so it will work
For your own account change the following file with your own projectId:
gatsby-config.js
{
resolve: 'gatsby-source-sanity',
options: {
projectId: 'xw24a3gm',
dataset: 'production',
// currenyly this is a public dataset
// if you have a private dataset
// token: process.env.MY_SANITY_TOKEN,
}
}
sanity deploy
deploy content
gatsby deploy
generate a static site for deployment