Blog

Configure blog categories and authors

The blog configuration defines categories and authors for your blog content.

Location

/config/blog.ts

Key Components

Blog Categories

Add a new object and a slug to add a new category to your blog.

config/blog.ts
export const BLOG_CATEGORIES: {
  title: string
  slug: "news" | "design"
  description: string
}[] = [
  {
    title: "News",
    slug: "news",
    description: `Updates and announcements from ${siteConfig.name}.`,
  },
  { 
    title: "Design & Tech", 
    slug: "design", 
    description: `Design and Tech content about ${siteConfig.name}.`, 
  }, 
]

Blog Authors

Blog posts can have one or multiple authors.
Add a new object with name, image url and twitter handle to add a new author to your blog.

config/blog.ts
export const BLOG_AUTHORS = {
  ShawnHacks: {
    name: "ShawnHacks",
    image: "/avatars/shawnhacks.jpg",
    twitter: "ShawnHacks",
  },
  newauthor: {   
    name: "newauthor", 
    image: "/avatars/newauthor.jpg", 
    twitter: "newauthor", 
  }, 
}

Usage

You can spacify the authers and categories in the blog post when you writting blogs.

Eg.

---
title: Build In Public, Witnessing the Birth of NestSaaS Together
description: Beyond Website Building, NestSaaS - The Fusion of Content and SaaS
date: "2025-05-02"
image: /images/illustrations/idea-launch.svg
authors:
  - newauthor
  - ShawnHacks
categories:
  - design
related:
  - dynamically-generates-og-images
---

The blog post can belong to multiple categories, but currently, only the first category in the list is being displayed.

On this page