Source code for https://thegoldenhurricast.com
Development by Ryan Token, blog and podcast contributions from Pat Fox, Matt Rechtien, and Ryan Token
- Ensure you have Homebrew, Node, and the GitHub CLI installed
- Clone the GitHub repo down locally. From the terminal, run:
gh repo clone r-token/the-golden-hurricast
- From the terminal, switch to the hurricast folder you just cloned down. Run
cd path/to/the-golden-hurricast
- From the terminal, run
npm i
- From the terminal, create a new GitHub branch named 'blog' and switch to that branch:
git branch blog && git checkout blog
- Create a new folder within
src/pages
- name it according to the pattern of the existing posts - Create a new file named
index.md
within that new folder - Add metadata to the top of the
index.md
file
Example:
---
path: "/odd-case-frank-haith"
date: "03/12/2021"
sortDate: "2021/03/12"
title: "The Odd Case of Frank Haith"
authors: "Ryan Token"
excerpt: "Rick Dickson has a decision to make."
tags: ['basketball', 'coaching']
---
- Blog post content should go inside the
index.md
file - Images for the post should be added within the
static/blog_images
folder - Images within the post can be loaded as follows:
![image alt text](/blog_images/folder-name/your-image-name.jpeg)
- Once you're ready to publish, run
git add .
,git commit -m "added a new blog post or whatever you want to say here"
, and thengit push origin blog
- In a minute or so, the preview of the blog post should be viewable at
blog--thegoldenhurricast.netlify.app
- Once you're happy with it, create a new Pull Request by going to the hurricast repo on GitHub, clicking Pull Requests in the top menu, and clicking the New Pull Request button
base
should be main,compare
should be blog- Add some description text if you want, and then click Create Pull Request and let me know. Once it's approved, you can merge it into the
main
branch, and that will automatically update the production website athttps://thegoldenhurricast.com
(it will take a minute or two)