feat: update readme.md

This commit is contained in:
Guoqi Sun 2024-12-23 01:32:48 +08:00
parent bacac5a5c3
commit 349ba14439

View file

@ -1,13 +1,14 @@
# Astro Air # Astro Air
A minimalism, personal blog theme for Astro A minimalism, personal blog theme for Astro.
> If you find this project helpful, please consider giving it a star ⭐️
[![Built with Astro](https://astro.badg.es/v1/built-with-astro/tiny.svg)](https://astro.build) [![Netlify Status](https://api.netlify.com/api/v1/badges/a4eb6e88-606d-4ea6-9a53-179e03a7e2ef/deploy-status)](https://app.netlify.com/sites/astro-air/deploys) [![Built with Astro](https://astro.badg.es/v1/built-with-astro/tiny.svg)](https://astro.build) [![Netlify Status](https://api.netlify.com/api/v1/badges/a4eb6e88-606d-4ea6-9a53-179e03a7e2ef/deploy-status)](https://app.netlify.com/sites/astro-air/deploys)
<img src="/src/public/preview.png" alt="Astro Air" width="200">
> <img style="border-radius: 10px;" src="https://cdn.jsdelivr.net/gh/sun0225SUN/astro-air/public/preview.png" alt="Astro Air">
> If you find this project helpful, please consider giving it a star ⭐️
## Showcase ## Showcase
@ -42,92 +43,11 @@ A minimalism, personal blog theme for Astro
## Configuration ## Configuration
### Common Settings - Open `src/config/index.ts` and customize your site settings
1. Open `src/config/index.ts` and customize your site settings: - Open `src/config/links.ts` and customize your site links
```typescript - Open `src/config/zh(en)/about.mdx(intro.mdx、links.mdx)` and customize your pages content
export const common = {
meta: {
favicon: "/favicon.ico",
url: "https://blog.sunguoqi.com",
},
googleAnalyticsId: "G-W37MQ05DRE",
social: [
{
icon: Twitter,
label: "X",
link: "https://x.com/sun0225SUN",
},
{
icon: Github,
label: "GitHub",
link: "https://github.com/sun0225SUN",
},
],
rss: true,
navigation: {
home: true,
archive: true,
custom: [
{
label: "CamLife",
link: "https://camlife.cn",
},
],
about: true,
},
latestPosts: 8,
}
```
### ZH Settings
```typescript
export const zh = {
...common,
siteName: "小孙同学",
meta: {
...common.meta,
title: "小孙同学",
slogan: "一个浪漫的理性主义者",
description: "读书、摄影、编程、旅行",
},
navigation: {
...common.navigation,
custom: [
{
label: "影集",
link: "https://camlife.cn",
},
],
},
}
```
### EN Settings
```typescript
export const en = {
...common,
siteName: "Guoqi Sun",
meta: {
...common.meta,
title: "Guoqi Sun",
slogan: "A Romantic Rationalist",
description: "Reading, Photography, Programming, Traveling",
},
navigation: {
...common.navigation,
custom: [
{
label: "CamLife",
link: "https://camlife.cn",
},
],
},
}
```
## Writing Content ## Writing Content