Skip to content

Getting Started

Firefly is a clean, beautiful, and modern personal blog theme built on the Astro framework and the Fuwari template. Designed for tech enthusiasts and content creators, it combines a modern web tech stack with rich feature modules and a highly customizable interface, enabling you to effortlessly create a professional and visually appealing personal blog.

firefly

Requirements

Installation

  1. Clone the repository
bash
git clone https://github.com/CuteLeaf/Firefly.git
cd Firefly
  1. Install dependencies
bash
pnpm install
  1. Start the development server
bash
pnpm dev
  1. Build for production
bash
pnpm build

Project Structure

Firefly/
├── src/
│   ├── config/          # Configuration files
│   ├── components/      # Components
│   ├── content/         # Content (posts, pages)
│   ├── layouts/         # Layout templates
│   ├── pages/           # Page routes
│   └── types/           # Type definitions
├── public/              # Static assets
└── astro.config.mjs     # Astro configuration

Configuration Overview

All configuration files are located in the src/config/ directory:

Config FileDescriptionDocs
siteConfig.tsSite basic configurationSite Config
navBarConfig.tsNavbar configurationNavbar
sidebarConfig.tsSidebar layout configurationSidebar
profileConfig.tsProfile configurationProfile
backgroundWallpaper.tsBackground wallpaper configurationWallpaper
commentConfig.tsComment system configurationComment
musicConfig.tsMusic player configurationMusic Player
fontConfig.tsFont configurationFont
coverImageConfig.tsCover image configurationCover Image
expressiveCodeConfig.tsCode block configurationCode Block
sakuraConfig.tsSakura effect configurationSakura
announcementConfig.tsAnnouncement configurationAnnouncement
footerConfig.tsFooter configurationFooter
licenseConfig.tsLicense configurationLicense
friendsConfig.tsFriends links configurationFriends
sponsorConfig.tsSponsor configurationSponsor
adConfig.tsAdvertisement configurationAdvertisement
pioConfig.tsLive2D/Spine model configurationLive2D/Spine