violoa- Welcome to the brand new site for my blog! Well, it now matches the current theme of zoclhas.com, so that's a yay!
As usual, let's start with the infamous
Notable Changes
- Changed from using
markdown-it
toMDX
. Now won't be needing any extra plugins for basic md features, and can add custom React components. - For a creating a post, navigate to
src/mdx/posts/
and create your<post-name>.mdx
file.- Images need to be added in
public/images/posts/
folder.
- Images need to be added in
- Still didn't implement copy code button :)
Setup
Clone the repo:
git clone https://github.com/zoclhas/blog.git
Install the dependencies:
#yarn yarn #npm npm i
Run the dev server:
#yarn yarn dev #npm npm run dev
Make your changes
Hosting
Best method to host NextJS apps are through Vercel. Though you aren't limited to hosting it on Netifly, cPanel or your own server.