Article content here...
This is the content of my blog post. It will be rendered inside the article layout from the theme.
# astro-theme-starread **Repository Path**: passwordgloo/astro-theme-starread ## Basic Information - **Project Name**: astro-theme-starread - **Description**: Astro Star Read Theme (星阅主题) - **Primary Language**: Unknown - **License**: CC-BY-SA-4.0 - **Default Branch**: dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2025-11-16 - **Last Updated**: 2026-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# Star Read - Astro Blog Theme >A brilliant yet clean and sophisticated Astro theme with star-like quality ## 🚀 Features - 🎨 modern UI design - 🔍 automatically creates local indexes, supporting both local offline search and Algolia network search - 📱 responsive design, compatible with mobile phones and PCS - 🌙 dark/light themes switch automatically - 🏷️ tag and category support - 📊 article statistics and author information display ## 📂 Project Structure ```text / ├── src/ │ ├── components/ # Component files │ ├── content/ # Content configuration │ ├── layouts/ # Layout templates │ ├── pages/ # Page routes │ └── styles/ # Style files ├── public/ # Static assets └── dist/ # Build output ``` ## 📦 Installation ### Method 1: Initialize via CLI Tool | Package Manager | Recommended Command | |----------------|-------------------------------------------| | pnpm / pnpx | `pnpm dlx astro-theme-starread init` or `pnpx astro-theme-starread init` | | npm (npx) | `npx astro-theme-starread init` | | Yarn | `yarn dlx astro-theme-starread init` (Requires Yarn v2+) | >[!note] >We provide a `create` command to facilitate creating a theme in a specified folder 1. Create Project: Depending on your package manager, choose one of the following commands: ```bash # Using pnpm pnpm create astro-theme-starread my-blog # Using npm npx create-astro-theme-starread my-blog # Using yarn yarn create astro-theme-starread my-blog # Using cnpm cnpm init astro-theme-starread my-blog ``` 2. Enter Project Directory: ```bash cd my-blog ``` 3. Install Dependencies: ```bash pnpm install ``` 4. Start Development Server: ```bash pnpm dev ``` ### Method 2: Install using `astro` template >[!warning] >This method requires accessing the GitHub repository, ensure network connectivity. | Package Manager | Command | |----------------|---------------------------------------------| | pnpm | `pnpm create astro@latest --template passwordgloo/astro-theme-starread` | | npm | `npm create astro@latest -- --template passwordgloo/astro-theme-starread` | | yarn | `yarn create astro --template passwordgloo/astro-theme-starread` | ### Method 3: Install from Source >[!warning] >This method requires accessing the GitHub repository, ensure network connectivity. ```bash git clone https://github.com/passwordgloo/astro-theme-starread cd astro-theme-starread pnpm install ``` >[!note] >After installation, run the development server: ```bash pnpm dev ``` ### Method 4: As a dependency in existing Astro project You can install the theme as a dependency in your existing Astro project and use its components, layouts, and pages directly from node_modules. This is the recommended way to use the theme in Astro 5 projects. 1. **Install the theme package**: ```bash # Using pnpm pnpm add astro-theme-starread # Using npm npm install astro-theme-starread # Using yarn yarn add astro-theme-starread ``` **Direct access to theme components and layouts in node_modules:** After installation, you can directly import and use components and layouts from the theme package in your Astro files. The components and layouts are accessible through the package's main entry point, making it easy to integrate them into your project. 2. **Import and use components directly from node_modules**: ```astro --- // Import components directly from the theme in node_modules import { NavBar, ThemeToggle, ArticleInfo, AuthorWidget, TagCloud } from 'astro-theme-starread'; ---Article content here...
This is the content of my blog post. It will be rendered inside the article layout from the theme.