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 to MDX. 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.
  • Still didn't implement copy code button :)

Setup

  1. Clone the repo:

    git clone https://github.com/zoclhas/blog.git
    
  2. Install the dependencies:

    #yarn
    yarn
    
    #npm
    npm i
    
  3. Run the dev server:

    #yarn
    yarn dev
    
    #npm
    npm run dev
    
  4. 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.