Skip to content

Latest commit

 

History

History
87 lines (58 loc) · 1.39 KB

README.md

File metadata and controls

87 lines (58 loc) · 1.39 KB

Next.Js Markdown Blog (SSG)

About

Next.Js Markdown Blog created using static site generation (SSG) in Next.js. This blog has features like pagination, auto create categories, static html export.

Packages Used

  • Next.js
  • Node.js
  • Tailwind
  • Typescript
  • GrayMatter
  • Markdown-to-jsx

Getting Started

Set Environment Variables

HomePage_Title=Techy Tubs
HomePage_Description=Techy Tubs is tech blog website.
blogUrl=Techytubs.com
postperpage=5

Install dependencies command

npm install

To build the static export of the blog

npm run build

For the development server

npm run dev

Paths for blog articles.

src
|
|----posts  //for adding markdown posts
|----blogPages  //for adding pages as markdown
|
public
|
|----uploads //uploading pictures for markdown posts and pages

Fields for Markdown Posts and Pages

  title: Mandatory  // "This is a big title"
  subtitle: Optional  // "This is a smol title"
  date: Mandatory  // "2023-05-7"
  categories: Mandatory  // ["my cat", "your cat", "our cat", "none of us cat"]
  description: Mandatory  // "This is a very important description"

Screenshots

Homepage

home

Post Page

post

Category Page

category

Pagination

pagination