This blog is built by remix-run
and tailwindCSS
.
npm install
Afterwards, start the Remix development server like so:
npm run dev
Open up http://localhost:3000 and you should be ready to go!
Add xxx.mdx
to the folder blog
.
---
title:
description:
publishedAt: '2020-10-19'
tags: ['']
image: 'image url' # if has cover image.
isPublished: true # decide if publish
---
As fs
is not working properly on vercel
, so we use github
api to fetch all the blog articles. That's why I add a loading spinner
to indicate the loading state.
However, we use fs
in local developement.
Please see the file app/api/read-post.server.ts