Skip to content

Commit

Permalink
feat: supports memos & upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cirry committed Nov 19, 2024
1 parent e36d78e commit 4324682
Show file tree
Hide file tree
Showing 10 changed files with 184 additions and 424 deletions.
21 changes: 19 additions & 2 deletions README-ZH-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@

一款以内容为主的Astro博客主题————Yi,快速和简洁。

![](https://pic-19d9.obs.cn-east-3.myhuaweicloud.com/astroyi/home.png)
![](https://astro-yi.obs.cn-east-3.myhuaweicloud.com/7.png)

![](https://pic-19d9.obs.cn-east-3.myhuaweicloud.com/astroyi/post-white.png)
![](https://astro-yi.obs.cn-east-3.myhuaweicloud.com/1.png)

![](https://astro-yi.obs.cn-east-3.myhuaweicloud.com/8.png)

### 🔥 特色功能

- [x] 支持多端显示
- [x] 支持暗黑显示
- [x] 集成Memos
- [x] 支持国际化
- [x] 支持搜索功能
- [x] 友好的SEO
Expand Down Expand Up @@ -91,9 +94,23 @@ export const site = {

/**
* busuanzi:是否开启不蒜子统计功能
* lang {string} Default website language: English
* codeFoldingStartLines {number} default 16
* ga {string} google analytics code
* memosUrl {string} memos server url
* memosUsername {string} memos login name
* memosPageSize {number} 10
*/
export const config = {
busuanzi: false,
lang: 'en', // English: en | 简体中文: zh-cn | 繁體中文: zh-Hant | cs
codeFoldingStartLines: 16, // Need to re-run the project to take effect
ga: false, // If you want to integrate with Google Analytics, just enter your GA-ID here.

// memos config
memosUrl: '', // https://xxxx.xxx.xx
memosUsername: '', // login name
memosPageSize: 10, // number
}

/**
Expand Down
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@ A content-focused Astro blog theme, Yi, in Chinese, it means fast and concise.

![](https://astro-yi.obs.cn-east-3.myhuaweicloud.com/1.png)

![](https://astro-yi.obs.cn-east-3.myhuaweicloud.com/8.png)

### 🔥 Features

- [x] Supports multi-platform display.
- [x] Supports dark mode.
- [x] support i18n
- [x] Supports Memos.
- [x] supports i18n.
- [x] Supports search functionality.
- [x] SEO-friendly
- [x] Supports sitemap and RSS.
Expand Down Expand Up @@ -88,12 +91,22 @@ export const site = {
/**
* busuanzi {boolean} Enable Busuanzi Statistics Functionality
* lang {string} Default website language: English
* codeFoldingStartLines {number}
* codeFoldingStartLines {number} default 16
* ga {string} google analytics code
* memosUrl {string} memos server url
* memosUsername {string} memos login name
* memosPageSize {number} 10
*/
export const config = {
busuanzi: false,
lang: 'en', // English: en | 简体中文: zh-cn | 繁體中文: zh-Hant
lang: 'en', // English: en | 简体中文: zh-cn | 繁體中文: zh-Hant | cs
codeFoldingStartLines: 16, // Need to re-run the project to take effect
ga: false, // If you want to integrate with Google Analytics, just enter your GA-ID here.

// memos config
memosUrl: '', // https://xxxx.xxx.xx
memosUsername: '', // login name
memosPageSize: 10, // number
}

/**
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "astro-blog",
"type": "module",
"version": "0.0.6",
"version": "0.0.7",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand All @@ -13,13 +13,13 @@
"@astrojs/mdx": "^3.1.9",
"@astrojs/rss": "^4.0.9",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/solid-js": "^4.4.2",
"@astrojs/solid-js": "^4.4.3",
"@astrojs/tailwind": "^5.1.2",
"@expressive-code/plugin-collapsible-sections": "^0.33.5",
"@expressive-code/plugin-line-numbers": "^0.33.5",
"@fancyapps/ui": "^5.0.35",
"@waline/client": "^3.1.3",
"astro": "^4.16.8",
"astro": "^4.16.13",
"astro-expressive-code": "^0.33.5",
"child_process": "^1.0.2",
"dayjs": "^1.11.10",
Expand Down
Loading

0 comments on commit 4324682

Please sign in to comment.