Skip to content

Site Configuration

Edit basic site information such as title, author, and description

By modifying the moire.config.ts file, you can customize your website’s basic information.

your-repo/
└── moire.config.ts ← Here

Open moire.config.ts, and you will see a configuration similar to this:

export default {
// Website Title
title: "My Moire Blog",
// Author Name
author: "Aeris",
// Website Description
description: "My personal blog powered by Moire",
// Number of posts displayed per page
pageSize: 10,
// Theme selection
theme: "receipt",
// Sort order
order_by: "created",
// Website URL
url: "https://moirelog.blog",
}

Type: string
Default: "Moire Blog"

The title of your website, which appears in:

  • Browser tabs
  • Top navigation bar
  • SEO meta tags

Type: string
Default: "Anonymous"

The author’s name, used for:

  • Article signatures
  • RSS feeds
  • SEO meta tags

Type: string
Default: "A blog powered by Moire"

The website description, primarily for SEO, appearing in:

  • Search engine results
  • Social media cards
  • RSS feed descriptions

Type: number
Default: 10

The number of posts displayed per page on the home page.

  • Recommended: 5-20
  • Too few requires frequent page turning
  • Too many can slow down loading

Type: string Options: "created" | "modified" Default: "created"

Sort order for posts:

  • created: Sort by creation date (default)
  • modified: Sort by modification date (suitable for users who frequently update notes)

Type: string
Options: "classic" | "receipt" | "cyberpunk" | "academic" | "pixel" | "bento"

The theme style. See the Themes chapter for details.

A complete configuration example:

export default {
title: "Moire's Notebook",
author: "Aeris",
description: "Notes on technology, life, and thoughts",
pageSize: 8,
theme: "academic",
order_by: "modified"
}

After modifying the configuration:

  1. Commit to GitHub (via Git or GitHub web editor)
  2. GitHub Actions will build automatically
  3. Wait 1-2 minutes and refresh your website to see the changes

Once you’ve configured your site, let’s look at how to switch themes.