A newer version of personal blog https://chriswang.tech, built with Jamstack.
After cloning this repo, run the following
npm i -g gatsby-cli
cd <repo_dir>
npm install
gatsby develop
Open https://chriswang.tech/admin
The Jamstack deployment consists of the following components.
- Site generator: Gatsby
- Source of trusth: Github
- CMS: Netlify CMS
- Build and Deployment: Netlify
- Security: Cloudflare
See below for more.
Based on hello-friend/ template.
See gatsby-config.js
for the Gatsby plugins.
Build and deployment. Decoupled from Netlify CMS.
A user-frendly editor that talks to the source of truth (Github).
Decoupled from Netlify
Available at https://chriswang.tech/admin
Make sure you've configured the API credentials for Github from the Access part of your Netlify site dashboard.
Solutions: https://docs.netlify.com/visitor-access/oauth-provider-tokens/#setup-and-settings
The name of the public_folder option in the Netlify CMS config src/admin/config.yml
is misleading. "Public" does not mean the pah in the /public
directory
Solution:
Change src/admin/config.yml
from
public_folder: ./static
to
public_folder: ../images
Solution:
Change the extension from .markdown
to .md
.
Source of truth that contains both code and content.