astro-erudite-wu 是一个自成体系、不带任何样式的静态博客模板,由Astro、Tailwind和shadcn/ui构建而成。它重度参考 !astro-erudite 与主题有着极大的相似之处。
[!说明] 这个主题修改的内容与方向极度个人化,请勿用于商业用途,因为我不确定其稳定. 当前测试版本:1.6.3 2025-11-25
-
Hit “Use this template”, the big green button on the top right, to create a new repository in your own GitHub account with this template.
-
Clone the repository:
git clone https://github.com/[YOUR_USERNAME]/[YOUR_REPO_NAME].git cd [YOUR_REPO_NAME] -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and visit
http://localhost:1234to get started. The following commands are also available:Command Description npm run startAlias for npm run devnpm run buildRun type checking and build the project npm run previewPreviews the built project npm run astroRun Astro CLI commands npm run prettierBlanket format all files using Prettier
编辑src/consts.ts文件以更新您网站的元数据、导航链接和社交链接
src/styles/global.css颜色以OKLCH 格式定义,使用shadcn/ui约定
- 这里我添加'江西拙楷'网络字体,以便中文阅读有更好的体验
网站图标是使用RealFaviconGenerator生成的。要调整网站图标,请将目录中的文件public/(例如favicon.ico、favicon.svg、apple-touch-icon.png等)替换为您自己的文件。更新网站图标文件后,您还需要调整其中的引用,src/components/Favicons.astro以匹配新的网站图标文件名和路径:
将新博客文章以 MDX 文件的形式添加到src/content/blog/目录中。使用以下前置内容结构:
---
title: 'Your Post Title'
description: 'A brief description of your post!'
date: 2024-01-01
tags: ['tag1', 'tag2']
image: './image.png'
authors: ['author1', 'author2']
draft: false
---
待补充...
