Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.


title: 'Theme Guide' pubDate: '2025-07-10'#

Chiri is a minimal blog theme built with Astro, offering customization options while preserving its clean aesthetic.


Basic Commands#

  • pnpm new <title> - Create a new post (use _title for drafts)
  • pnpm update-theme - Update the theme to the latest version

Main Files & Directories#

  • src/content/about/about.md - Edit the about section of the index page. Leave it empty if you don't want any content.
  • src/content/posts/ - All blog posts are stored here
  • src/config.ts - Configure main site info and settings
// Site Info

site: {
  // Site domain
  website: 'https://astro-chiri.netlify.app/',
  // Site title
  title: 'CHIRI',
  // Author name
  author: '3ASH',
  // Site description
  description: 'Minimal blog built by Astro',
  // Default language
  language: 'en-US'
},
// General Settings

general: {
  // Content area width
  contentWidth: '35rem',
  // Use centered layout (false for left-aligned)
  centeredLayout: true,
  // Show theme toggle button (uses system theme by default)
  themeToggle: false,
  // Show dotted divider in post list
  postListDottedDivider: false,
  // Show footer
  footer: true,
  // Enable fade animations
  fadeAnimation: true
},
// Date Settings

date: {
  // Date format: YYYY-MM-DD, MM-DD-YYYY, DD-MM-YYYY, MONTH DAY YYYY, DAY MONTH YYYY
  dateFormat: 'YYYY-MM-DD',
  // Date separator: . - / (except for MONTH DAY YYYY and DAY MONTH YYYY)
  dateSeparator: '.',
  // Date position in post list (true for right, false for left)
  dateOnRight: true
},
// Post Settings

post: {
  // Show reading time in posts
  readingTime: false,
  // Show table of contents (when there is enough page width)
  toc: true,
  // Enable image viewer
  imageViewer: true,
  // Enable copy button in code blocks
  copyCode: true,
  // Enable link card
  linkCard: true
}

Post Frontmatter#

Only title and pubDate are required fields

---
title: 'Post Title'
pubDate: '2025-07-10'
---

Syntax Highlighting#

You can configure the theme via shikiConfig in astro.config.ts.

More details: Syntax Highlighting | Astro Docs

import { defineConfig } from 'astro/config'

export default defineConfig({
  markdown: {
    shikiConfig: {
      light: 'github-light',
      dark: 'github-dark',
      wrap: false
    }
  }
})

Preview of Some Features#

Theme Toggle

Dotted Divider

Date on Left Side

Table of Contents

Reading Time

Copy Code