Skip to content

cchawn/christina-codes

Repository files navigation

✨ christina.codes ✨

ℹ️ This is a statically generated blog using Next.js, Markdown, and TypeScript.

The blog posts are stored in /_posts as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.

To create the blog posts, we use remark and remark-html to convert the Markdown files into an HTML string, and then send it down as a prop to the page. The metadata of every post is handled by gray-matter and also sent in props to the page.

This site uses uses Tailwind CSS (v3.0).

Development

Running Locally

Use a slim HTTP server to serve static files for this website. It will be available on http://localhost:3000.

yarn install
yarn dev

Build & Deployment

To re-generate the static files you will need to rebuild the website with the following:

yarn build

This website is hosted with Railway. Changes made to the main branch will be automatically pushed to production.