logo
0
0
WeChat Login
cnb<cnb@example.com>
Initial commit

Momo

A nimimal blog template build with Astro

简体中文 English

✨ Features

Momo originates from Xiaohongshu📕, serving as the default nickname for every new user—symbolizing a fresh start. This philosophy guides our blog design, striking a balance between complex functionality and minimalist aesthetics.

  • Minimalist Design: Clean page layout with black and white as primary colors, accented by blue
  • Dark Mode: Supports manual switching or automatic system adaptation
  • Article Search: Implements localized search using pagefind
  • Internationalization (i18n): Supports multilingual switching, currently available in Simplified Chinese and English
  • Mobile Adaptation: Components optimized for mobile devices, delivering the same experience as desktop browsers
  • Commenting: Supports local deployment and Cloudflare deployment. See Backend for details
  • Extensive Markdown syntax: Supports Katex, Typst, and Alert components, GitHub cards, custom syntax, and more
  • Other core features: Article categories, directory, RSS subscription, text statistics, reading time

🚀 Quick Start

  1. Clone this project
    git clone https://github.com/Motues/Momo.git cd Momo
  2. Run pnpm install to install dependencies (use npm install -g pnpm to install pnpm)
  3. Run pnpm dev to start the development server

🔧 Configuration

Refer to the Configuration Guide. For detailed information, visit Momo and read the corresponding articles.

📚 Updating

Refer to the Update Guide for instructions on updating your project. Visit Momo for detailed information.

🍃 Branch

Below are some branches that are maintained on an irregular basis; we cannot guarantee that they will remain in sync with the main branch.

  • memos: Implements the Memos card feature
  • v6: Upgrades dependencies to Astro v6

⚡ Commands

All commands below can be executed in the root directory

CommandFunction
pnpm installInstall dependencies
pnpm devStart local server at http://localhost:4321
pnpm buildBuild release version to ./dist directory
pnpm previewPreview built release version
pnpm astro ...Run astro commands, e.g., astro add
pnpm newpost <path> <lang>Create a new post, e.g., pnpm newpost docs/test.md zh-cn. Language can be omitted; defaults to zh-cn

📚 References