Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ v3.1.5 #27

Closed
wants to merge 59 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
c1f9d44
docs: :memo: add code-of-conduct
cworld1 Dec 3, 2024
45e1b83
feat(public): :sparkles: new design icon
cworld1 Dec 3, 2024
0213c84
fix(public): :lipstick: fix shiki code style
cworld1 Dec 3, 2024
84f1abc
update from upstream
cworld1 Dec 3, 2024
edfb828
docs: :memo: update docs
cworld1 Dec 3, 2024
b8d81da
test: :test_tube: test astro v5
cworld1 Dec 4, 2024
5c664c6
test(plugins): :test_tube: test pagefind 1
cworld1 Dec 4, 2024
b3a558c
test(plugins): :test_tube: test pagefind 2
cworld1 Dec 4, 2024
67de852
test(plugins): :test_tube: test pagefind 3
cworld1 Dec 5, 2024
8e25cab
test(plugins): :test_tube: test pagefind 4
cworld1 Dec 5, 2024
daafacb
test(plugins): :test_tube: test pagefind 5
cworld1 Dec 6, 2024
d5a96d8
test(plugins): :test_tube: test pagefind 6
cworld1 Dec 6, 2024
ae63783
chore: :memo: add code-of-conduct
cworld1 Dec 8, 2024
fc3caed
chore: :memo: move domain astro--theme-pure.vercel.appto astro-pure.j…
cworld1 Dec 8, 2024
24f4cb8
feat(package): :sparkles: new astro-pure package
cworld1 Dec 8, 2024
058948f
chore: :memo: continue move content to blog for astro v5
cworld1 Dec 8, 2024
0848b89
feat(package): :sparkles: move components to package
cworld1 Dec 8, 2024
9260c63
feat(package): :sparkles: move basic components & pages components to…
cworld1 Dec 8, 2024
1e5dabd
feat(package): :sparkles: move declaration of utils, servers & types
cworld1 Dec 8, 2024
6d03cd0
feat(package): :sparkles: move utils to package
cworld1 Dec 8, 2024
d67bcc5
feat(package): :sparkles: move plugins to package
cworld1 Dec 8, 2024
78be355
feat(package): :sparkles: new config design using package
cworld1 Dec 8, 2024
d3e10fa
feat(package): :sparkles: support compiling config
cworld1 Dec 8, 2024
7a7bca7
feat(package): :sparkles: enable new config
cworld1 Dec 8, 2024
8cb0f41
perf(components): :coffin: remove dead components
cworld1 Dec 8, 2024
d7bd30c
feat(components): :sparkles: update to new utils & configs
cworld1 Dec 8, 2024
52ae04b
feat(package): :sparkles: support some built-in icons
cworld1 Dec 8, 2024
805951b
perf: :zap: update docs & scripts
cworld1 Dec 8, 2024
266bc13
feat(package): :sparkles: support config using schemas
cworld1 Dec 8, 2024
2ec959c
chore: :rotating_light: lint code
cworld1 Dec 8, 2024
dbb7001
feat(package): :package: pack to npm with test
cworld1 Dec 8, 2024
73af56e
docs: :memo: update readme
cworld1 Dec 8, 2024
1d86ae7
chore: :memo: add github issue template
cworld1 Dec 8, 2024
b18bb81
build(package): :arrow_up: update dependencies
cworld1 Dec 11, 2024
133c9af
fix(components): :bug: because virtual:config can only be accessed us…
cworld1 Dec 11, 2024
499be14
fix(package): :bug: remove 'virtual:types' to use relative path impor…
cworld1 Dec 11, 2024
897acea
feat(package): :lipstick: add more built-in icons
cworld1 Dec 11, 2024
5a532f8
perf(public): :fire: continuing using new icon set
cworld1 Dec 11, 2024
2d9d3de
refactor(components): :zap: remove unused footer style
cworld1 Dec 11, 2024
637af6a
feat(components): :sparkles: support dynamic colorscheme card hover
cworld1 Dec 11, 2024
0614f88
fix(components): :bug: fix theme change listening; fix toast position
cworld1 Dec 11, 2024
ab00e4d
feat(components): :lipstick: add iconstype; update icon set to built-in
cworld1 Dec 11, 2024
dfabcce
feat(components): :zap: change qrcode component to a easy-used simple…
cworld1 Dec 11, 2024
fcd9aee
perf(components): :zap: use ::after element to achive mobile expand b…
cworld1 Dec 11, 2024
f957388
refactor(components): :lipstick: move tags to header, the same line w…
cworld1 Dec 11, 2024
ab8f8ba
refactor(components): :art: improve componet expandation
cworld1 Dec 11, 2024
db34064
fix(components): :bug: fix comment style var
cworld1 Dec 11, 2024
fc7a8fe
docs(docs): :memo: add content on using icon
cworld1 Dec 11, 2024
42ecdb7
docs(content): :memo: add new example post
cworld1 Dec 11, 2024
3560902
feat(components): :sparkles: support changing url when click toc
cworld1 Dec 11, 2024
cb5282d
refactor(pages): :children_crossing: support subdir in blog content c…
cworld1 Dec 11, 2024
2a26dd1
docs(docs): :memo: update docs config declaration
cworld1 Dec 11, 2024
acb64e7
feat: :lipstick: support title anchor margin top
cworld1 Dec 11, 2024
221ce8c
feat: :sparkles: support importing svg in astro files
cworld1 Dec 11, 2024
6d3910c
chore(public): :truck: update social-card
cworld1 Dec 11, 2024
4d57b05
fix(utils): :bug: fix listen-theme-change effective conditions
cworld1 Dec 11, 2024
7874af6
chore: :bulb: update comment; remove unused file
cworld1 Dec 11, 2024
0c5f8ef
fix(pages): :bug: fix projects view count wrong script use method
cworld1 Dec 11, 2024
41e0123
docs(content): :memo: update content posts
cworld1 Dec 11, 2024
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
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/01_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "\U0001F41B Bug report"
description: Report an issue or possible bug
labels: ['bug']
body:
- type: markdown
attributes:
value: |
## Quick Checklist
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.

✅ I am using the **latest version of `astro-theme-pure`** and all plugins.
✅ I am using a version of Node that Astro supports (`v18.17.1` or `v20.3.0` or higher.)
- type: textarea
id: bug-description
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: input
id: browser
attributes:
label: If this issue only occurs in one browser, which browser is a problem?
placeholder: Chrome, Firefox, Safari
- type: checkboxes
id: will-pr
attributes:
label: Participation
options:
- label: I am willing to submit a pull request for this issue.
required: false
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/02_feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: 💡 Feature
description: Suggest a new feature or improvement.
labels: ['enhancement']
body:
- type: textarea
id: description
attributes:
label: Description
description: A summary of the feature or improvement you are suggesting.
validations:
required: true
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: 💁 Discussion
url: https://github.com/cworld1/astro-theme-pure/discussions
about: 'This issue tracker is not for support questions. Leave a comment on the discussion board if you need help.'
- name: 📘 Documentation
url: https://astro-pure.js.org/docs/list
about: Checkout the documentation for more information
- name: 💡 Ideas for New Features, Improvements and RFCs
url: https://github.com/withastro/roadmap/discussions
about: Propose and discuss future improvements to Astro
- name: 👾 Chat
url: https://t.me/astro_pure
about: Chat with the community on Telegram
Binary file added .github/assets/body.webp
Binary file not shown.
Binary file added .github/assets/header.webp
Binary file not shown.
Binary file added .github/assets/lighthouse-score.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ node_modules/
old_blog
ignore.*
bunfig.toml
/src/content/post/test.*
/src/content/blog/test.*
/test/
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"]
}
128 changes: 128 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[email protected].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series
of actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
the community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.

Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
4 changes: 2 additions & 2 deletions README-zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

## 简介 / 部署

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

## 使用

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

## 本地开发

Expand Down
41 changes: 32 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,52 @@

[![GitHub commit activity](https://img.shields.io/github/commit-activity/t/cworld1/astro-theme-pure?label=commits&style=flat-square)](https://github.com/cworld1/astro-theme-pure/commits)
[![GitHub stars](https://img.shields.io/github/stars/cworld1/astro-theme-pure?style=flat-square)](https://github.com/cworld1/astro-theme-pure/stargazers)
[![vercel status](https://img.shields.io/website?down_message=offline&label=vercel&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fastro-theme-pure.vercel.app)](#)
[![vercel status](https://img.shields.io/website?down_message=offline&label=vercel&logo=vercel&style=flat-square&up_message=online&url=https%3A%2F%2Fastro-pure.js.org)](#)
[![GitHub license](https://img.shields.io/github/license/cworld1/astro-theme-pure?style=flat-square)](https://github.com/cworld1/astro-theme-pure/blob/main/LICENSE)

A simple, clean but powerful blog theme build by astro.
A simple, fast and powerful blog theme built by astro.

![image](https://github.com/user-attachments/assets/7eb17ddf-fd5f-42f3-a337-675a21ba7a27)
![image](./.github/assets/header.webp)
![image](./.github/assets/body.webp)

## Introduction

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

## Usage
### :fire: Features

[Docs](https://astro-theme-pure.vercel.app/docs/list) | [Showcase](https://github.com/cworld1/astro-theme-pure/issues/10)
- [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/list) | [Showcase](https://github.com/cworld1/astro-theme-pure/issues/10)

## Local development

Environment requirements:

- [Nodejs](https://nodejs.org/): 18.0.0+
- [Bun](https://bun.sh/): 1.0.0+

Clone the repository:

Expand All @@ -43,8 +68,6 @@ Start the development server:

```shell
bun dev
# For Windows, Bun has not yet implemented background tasks. So for Bun, use the following command instead:
# bun start
```

Or build (you may need to use node.js SSR firstly):
Expand Down
Loading