Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
7d218e8
Adjust header
linlucath May 7, 2025
bd3e835
Adjust structure and clean up homepage
linlucath May 7, 2025
662e001
Post calculus note
linlucath May 7, 2025
432ace0
Rename folder
linlucath May 7, 2025
a2948f2
fix layout error and update post
linlucath May 7, 2025
16ba59f
Update post
linlucath May 7, 2025
3c0f8dd
Update post
linlucath May 7, 2025
57ca10f
Clean up website
linlucath May 8, 2025
6e98817
Update thumbnail
linlucath May 8, 2025
aa5fb46
Update post
linlucath May 8, 2025
b5db76d
Update post
linlucath May 8, 2025
7f0c4ba
Update post
linlucath May 8, 2025
4e8eaf7
Update post
linlucath May 9, 2025
35859ff
Update README
linlucath May 9, 2025
decdf81
Update README
linlucath May 9, 2025
f5fff2b
Update README
linlucath May 9, 2025
b780dfe
Update demo
linlucath May 9, 2025
9314b26
Fix render error
linlucath May 9, 2025
e7b8667
fix content error
linlucath May 9, 2025
0749516
fix image not found error
linlucath May 9, 2025
795fd45
Update post
linlucath May 9, 2025
db10483
Modify content structure
linlucath May 9, 2025
7e302db
Update post
linlucath May 9, 2025
1895f4a
Update post
linlucath May 9, 2025
14d0493
Update post
linlucath May 10, 2025
2893ab9
Update post
linlucath May 10, 2025
060d930
fix structure error
linlucath May 10, 2025
7636db1
fix content error
linlucath May 10, 2025
fbbe4d6
fix structure error
linlucath May 10, 2025
4a58fe6
Merge post
linlucath May 10, 2025
8b0ecc2
Update post
linlucath May 10, 2025
42bb448
Modify content format
linlucath May 10, 2025
e25bf9e
Modify content layout
linlucath May 10, 2025
b8bd14e
Update post
linlucath May 10, 2025
beb7267
Update post
linlucath May 11, 2025
1668e92
Update post
linlucath May 14, 2025
88f45d5
Update post
linlucath May 27, 2025
bade49f
Update post
linlucath May 27, 2025
fa5e545
Update post
linlucath May 30, 2025
1514ddd
Update post
linlucath May 30, 2025
ba2d49f
Update post
linlucath May 30, 2025
3c990f0
Update post
linlucath Jun 3, 2025
51c2d82
Update post
linlucath Jun 10, 2025
d0bfe5f
Update post
linlucath Jun 10, 2025
5ad7848
Update post
linlucath Jun 12, 2025
3d2f4b5
Update post
linlucath Jun 12, 2025
b5cde67
Update post
linlucath Jun 13, 2025
395f823
Update post
linlucath Jun 14, 2025
e4883dc
Update post
linlucath Jun 14, 2025
0b5c0ee
Update post
linlucath Jun 16, 2025
6510c35
Update post
linlucath Jun 17, 2025
480056d
Update post
linlucath Jun 19, 2025
d81ba68
Update post
linlucath Jun 19, 2025
f15a19c
Update post
linlucath Jun 25, 2025
f709d18
Update post
linlucath Jun 29, 2025
b0702b2
Update post
linlucath Jun 30, 2025
e2fe619
Update post
linlucath Jun 30, 2025
74832a5
Update post
linlucath Jun 30, 2025
b907519
Update post
linlucath Jul 1, 2025
92fa201
Update post
linlucath Jul 1, 2025
a21dc93
Update post
linlucath Jul 1, 2025
c6a8c0e
Update post
linlucath Jul 1, 2025
f82a1b7
Update post
linlucath Jul 1, 2025
26f210c
modify github workflow
linlucath Oct 1, 2025
2db75ef
Initial plan
Copilot Oct 1, 2025
36523f3
Fix GitHub Pages deployment: change branch from sophomore to main
Copilot Oct 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/assets/Overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/assets/body.webp
Binary file not shown.
Binary file removed .github/assets/header.webp
Binary file not shown.
Binary file removed .github/assets/lighthouse-score.png
Binary file not shown.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ node_modules/

# others
.DS_Store
old_blog
ignore.*
bunfig.toml
/src/content/blog/test.*
/test/
temp/
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": true,
"scminput": false
}
}
99 changes: 7 additions & 92 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,104 +2,19 @@

[English](./README.md) | [简体中文](./README-zh-CN.md)

一个由 Astro 构建的轻便简洁、快速强大的博客主题
一个简洁的个人博客网站,使用 Astro 构建

[![GitHub deployments](https://img.shields.io/github/deployments/cworld1/astro-theme-pure/production?style=flat&logo=vercel&label=vercel)](https://astro-pure.js.org/)
[![NPM Version](https://img.shields.io/npm/v/astro-pure?logo=npm&style=flat)](https://www.npmjs.com/package/astro-pure)
[![GitHub Release](https://img.shields.io/github/v/release/cworld1/astro-theme-pure?include_prereleases&style=flat&label=template)](https://github.com/cworld1/astro-theme-pure/releases)
[![GitHub License](https://img.shields.io/github/license/cworld1/astro-theme-pure?style=flat)](https://github.com/cworld1/astro-theme-pure/blob/main/LICENSE)
[Link](https://linlucath.github.io/)

![image](./.github/assets/header.webp)
![image](./.github/assets/body.webp)
![image](./.github/assets/Overview.png)

> [!WARNING]
> 主题模板 v4.x 是基于Astro v5 以及独立主题 NPM 包方法。更稳定的版本是 [v3.1.4](https://github.com/cworld1/astro-theme-pure/tree/v3.1.4)。已知问题:
>
> 1. 无法在 Vercel 上打包站点地图和 pagefind 资源([需要上游修复](https://github.com/withastro/astro/issues/12663) & 临时修复)
> 2. Head 标签和自定义选项仍在开发中(已经暴露模板直接改)
> 3. Rehype 标题链接在 NPM 模块链接方法中无法按预期工作(用户无影响)

## 简介

查看 [预览 →](https://astro-pure.js.org/)

## :fire: 特性

- [x] :rocket: 快速高性能
- [x] :star: 简单干净的设计
- [x] :iphone: 响应式设计
- [x] :mag: 使用 [pagefind](https://pagefind.app/) 构建的全站搜索
- [x] :world_map: 站点地图和 RSS 订阅
- [x] :spider_web: 友好的 SEO
- [x] :book: 目录(table of contents)
- [x] :framed_picture: 动态为文章生成可供三方媒体预览的分享图像
- [x] :framed_picture: Mediumzoom 图像灯箱

## :package: 组件

主题包含了许多组件,不仅可以在主题中使用,还可以在其他 Astro 项目中使用。

> 对于其他 Astro 项目,需要 Tailwind CSS。

- 基础组件:`Aside`、`Tabs`、`Timeline`、`Steps`、`Spoiler`...
- 高级组件:`GithubCard`、`LinkPreview`、`Quote`、`QRCode`...

## :white_check_mark: Lighthouse 分数

[![lighthouse-score](./.github/assets/lighthouse-score.png)](https://pagespeed.web.dev/analysis/https-cworld-top/o229zrt5o4?form_factor=mobile&hl=en)

## 文档

[文档](https://astro-pure.js.org/docs) | [展示台](https://github.com/cworld1/astro-theme-pure/issues/10)

## NPM 包

在 NPM 上查看:[astro-theme-pure](https://www.npmjs.com/package/astro-pure)

## 本地开发

环境要求:

- [Nodejs](https://nodejs.org/): 18.0.0+

克隆存储库:

```shell
git clone https://github.com/cworld1/astro-theme-pure.git
cd astro-theme-pure
```

有用的命令:

```shell
# install dependencies
bun install

# start the dev server
bun dev

# build the project
bun run build

# preview (after the build)
bun preview

# create a new post
bun new-post
```

## 贡献

为了花更多时间编写代码,减少在空白上纠结的时间,本项目使用代码约定和样式来鼓励一致性。风格一致的代码更容易(且更不容易出错)进行审查、维护和理解。

## 鸣谢
## 致谢

- [Astro Themes](https://github.com/cworld1/astro-theme-pure)
- [Astro Cactus](https://github.com/chrismwilliams/astro-theme-cactus)
- [Astro Resume](https://github.com/srleom/astro-theme-resume)
- [Starlight](https://github.com/withastro/starlight)

## 许可证

本项目基于 Apache 2.0 许可证。
## 许可

[![Star History Chart](https://api.star-history.com/svg?repos=cworld1/astro-theme-pure&type=Date)](https://star-history.com/#cworld1/astro-theme-pure&Date)
This project is licensed under the Apache 2.0 License.
93 changes: 4 additions & 89 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,104 +2,19 @@

[English](./README.md) | [简体中文](./README-zh-CN.md)

A simple, fast and powerful blog theme built by Astro.
A simple, fast and powerful blog website built by Astro.

[![GitHub deployments](https://img.shields.io/github/deployments/cworld1/astro-theme-pure/production?style=flat&logo=vercel&label=vercel)](https://astro-pure.js.org/)
[![NPM Version](https://img.shields.io/npm/v/astro-pure?logo=npm&style=flat)](https://www.npmjs.com/package/astro-pure)
[![GitHub Release](https://img.shields.io/github/v/release/cworld1/astro-theme-pure?include_prereleases&style=flat&label=template)](https://github.com/cworld1/astro-theme-pure/releases)
[![GitHub License](https://img.shields.io/github/license/cworld1/astro-theme-pure?style=flat)](https://github.com/cworld1/astro-theme-pure/blob/main/LICENSE)
[Link](https://linlucath.github.io/)

![image](./.github/assets/header.webp)
![image](./.github/assets/body.webp)

> [!WARNING]
> Theme template v4.0.2^ is changing CSS engine to UnoCSS. Stabler experience is currently on [v4.0.1-beta](https://github.com/cworld1/astro-theme-pure/tree/v4.0.1-beta). Known issues:
>
> 1. UnoCSS adaption (serious)
> 2. Cannot pack sitemap and pagefind resources on Vercel ([need upstream fix](https://github.com/withastro/astro/issues/12663) & temp fixed)
> 3. Header & customize options is still under development (template exposed still)

## Introduction

Checkout [Demo Site →](https://astro-pure.js.org/)

### :fire: Features

- [x] :rocket: Fast & high performance
- [x] :star: Simple & clean design
- [x] :iphone: Responsive design
- [x] :mag: Full-site search built with [pagefind](https://pagefind.app/)
- [x] :world_map: Sitemap & RSS feed
- [x] :spider_web: SEO-friendly
- [x] :book: TOC (table of contents)
- [x] :framed_picture: Dynamic open graph generation for posts
- [x] :framed_picture: Mediumzoom lightbox for images

### :package: Components

Theme includes a lot of components, which can not only be used in the theme, but also in other astro projects.

> For other astro projects, Tailwind CSS is required.

- Basic components: `Aside`, `Tabs`, `Timeline`, `Steps`, `Spoiler`...
- Advanced components: `GithubCard`, `LinkPreview`, `Quote`, `QRCode`...

### :white_check_mark: Lighthouse score

[![lighthouse-score](./.github/assets/lighthouse-score.png)](https://pagespeed.web.dev/analysis/https-cworld-top/o229zrt5o4?form_factor=mobile&hl=en)

## Documentation

[Docs](https://astro-pure.js.org/docs) | [Showcase](https://github.com/cworld1/astro-theme-pure/issues/10)

## Package

See [astro-theme-pure](https://www.npmjs.com/package/astro-pure) on npm.

## Local development

Environment requirements:

- [Nodejs](https://nodejs.org/): 18.0.0+

Clone the repository:

```shell
git clone https://github.com/cworld1/astro-theme-pure.git
cd astro-theme-pure
```

Useful commands:

```shell
# install dependencies
bun install

# start the dev server
bun dev

# build the project
bun run build

# preview (after the build)
bun preview

# create a new post
bun new-post
```

## Contributions

To spend more time coding and less time fiddling with whitespace, this project uses code conventions and styles to encourage consistency. Code with a consistent style is easier (and less error-prone!) to review, maintain, and understand.
![image](./.github/assets/Overview.png)

## Thanks

- [Astro Themes](https://github.com/cworld1/astro-theme-pure)
- [Astro Cactus](https://github.com/chrismwilliams/astro-theme-cactus)
- [Astro Resume](https://github.com/srleom/astro-theme-resume)
- [Starlight](https://github.com/withastro/starlight)

## License

This project is licensed under the Apache 2.0 License.

[![Star History Chart](https://api.star-history.com/svg?repos=cworld1/astro-theme-pure&type=Date)](https://star-history.com/#cworld1/astro-theme-pure&Date)
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-check

import { rehypeHeadingIds } from '@astrojs/markdown-remark'
import vercel from '@astrojs/vercel'
// import vercel from '@astrojs/vercel'
import vercelStatic from '@astrojs/vercel/static'
import AstroPureIntegration from 'astro-pure'
import { defineConfig } from 'astro/config'
Expand Down
8 changes: 8 additions & 0 deletions src/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"github.copilot.enable": {
"*": true,
"plaintext": false,
"markdown": true,
"scminput": false
}
}
1 change: 1 addition & 0 deletions src/assets/tools/ArcticonsGeogebra.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/tools/Copilot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/tools/HarmonyOS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/tools/IntelliJ.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/tools/MaterialIconThemeMathematica.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading