Cherry'Blog

Getting Started with Mare Blog: Configuration and Usage Guide

A comprehensive guide on configuring your site, managing pages, publishing posts, and using CLI commands in Mare Blog.

Welcome to Mare Blog! This post serves as a complete walkthrough to help you set up, customize, and maintain your new blog. Whether you are modifying global configurations, managing your pages, or creating fresh content, you will find all the essential steps below.

1. Configuring Your Site

All global site metadata and third-party integrations (such as the Giscus comment system) are managed inside src/site.config.ts.

Open src/site.config.ts and update the values to match your personal details:

export default defineConfig({
  siteTitle: "Mare Blog",
  author: "Niceeepoiu",
  authorUrl: "https://github.com/Niceeepoiu",

  giscus: {
    enable: false,
    repo: "your-username/your-repo-name",
    repoId: "YOUR_GISCUS_REPO_ID",
    category: "Announcements",
    categoryId: "YOUR_GISCUS_CATEGORY_ID",
    theme: "light",
    lang: "en",
  },
});

Configuration Options Breakdown

Main Site Metadata

Giscus Comment System Settings

2. Modifying the About Page

The About page content is managed via Markdown and located at src/content/about.md.

To update your personal bio:

  1. Open the About Markdown file.
  2. Update the Frontmatter metadata at the top if needed.
  3. Edit the Markdown body below the Frontmatter to update your personal intro, project showcase, or social media links.
---
title: "Title"
description: "description..."
---

Write your Markdown content here.

3. Writing & Publishing Posts

Blog articles live inside the content directory: src/content/blog/.

To publish a new article:

  1. Create a new .md or .mdx file in src/content/blog/ (e.g., my-first-post.md).
  2. Add the required Frontmatter metadata at the top of the file:
---
title: "Blog Title"
description: "description..."
pubDate: 2026-08-30
---

Write your Markdown content here.

The new post will automatically appear on your homepage and blog list.

4. Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm dev Starts local dev server at localhost:4321
pnpm build Builds your production site to ./dist/
pnpm preview Previews your build locally, before deploying
pnpm format Formats code across the project using Prettier
pnpm astro ... Runs CLI commands like astro add, astro check
pnpm astro -- --help Gets help using the Astro CLI