feat: update readme.md
This commit is contained in:
parent
bacac5a5c3
commit
349ba14439
1 changed files with 8 additions and 88 deletions
96
README.md
96
README.md
|
|
@ -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 ⭐️
|
||||||
|
|
||||||
[](https://astro.build) [](https://app.netlify.com/sites/astro-air/deploys)
|
[](https://astro.build) [](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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue