How to use this project
Getting Started
1. Copy this repository
2. Configure Decap CMS
- Edit the file
static/admin/config.yml
- Set the
repo
to the name of the repository you just created. - Set the
baseURL
to the https url to the domain you’ll set up later, for instance “https://best-blog-in-the-world.com”
- Set the
3. Create Github OAuth App
-
Create an app with an appropriate name for the blog in in Github Developer Settings
-
Set Callback to the https url to the domain you’ll set up later, followed by /callback, for instance “https://best-blog-in-the-world.com/callback"
-
Grab the Client ID and create a Client Secret for the next step.
4. Configure Cloudflare Pages
valid as of 2023-12-18
-
Log in to CloudFlare, hit Workers & Pages in the left sidebar, and then Create application.
-
Click the Pages tab and then Connect to Git.
-
Connect GitHub if you haven’t already, and choose the repository you just created.
-
Choose Hugo under Framwork Preset, and open the Environment Variable section.
-
Create the following environment variables:
OAUTH_CLIENT_ID
- The Client ID from the Github OAuth AppOAUTH_CLIENT_SECRET
- The Client Secret from the Github OAuth AppREDIRECT_URI
- Set this to the https url to the domain you’ll set up later, followed by /callback, for instance “https://best-blog-in-the-world.com/callback"
-
Click Save and Deploy.
-
Set up your Custom Domain