diff --git a/README.md b/README.md index 9451ee8..02dbc28 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,14 @@ # 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) -Astro Air -> -> If you find this project helpful, please consider giving it a star ⭐️ +Astro Air + ## Showcase @@ -42,92 +43,11 @@ A minimalism, personal blog theme for Astro ## 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 -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", - }, - ], - }, -} -``` +- Open `src/config/zh(en)/about.mdx(intro.mdx、links.mdx)` and customize your pages content ## Writing Content