Published on

Big shout to Next.js as my blog deployed on Vercel

Authors
  • avatar
    Name
    Emmanuel
    Twitter

Quick Start

  1. Clone the repo
#npx
npx degit 'timlrx/tailwind-nextjs-starter-blog'

#git
git clone https://github.com/timlrx/tailwind-nextjs-starter-blog.git


  1. Personalize siteMetadata.js (site related information)
  2. Modify the content security policy in next.config.js if you want to use other analytics provider or a commenting solution other than giscus.
  3. Personalize authors/default.md
  4. Modify projectsData.ts
  5. Modify headerNavLinks.ts to customize navigation links
  6. Add blog posts
  7. Deploy on Vercel

Installation

yarn

Note: may need to run on Command Prompt on Windows.

set PWD="$(pwd)"

Development

First, run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Edit the layout in app or content in data. With live reloading, the pages auto-updates as you edit them.

Extend / Customize

data/siteMetadata.js - contains most of the site related information which should be modified for a user's need.

data/authors/default.md - default author information (required). Additional authors can be added as files in data/authors.

data/projectsData.js - data used to generate styled card on the projects page.

data/headerNavLinks.js - navigation links.

data/logo.svg - replace with your own logo.

data/blog - replace with your own blog posts.

public/static - store assets such as images and favicons.

Deploy

Vercel
Deploy on Vercel. Please check out the Next.js deployment documentation for more details.

Licence

MIT © Timothy Lin