From 61f3eddf1fc574aac6b195fa20bd0dda5c32c061 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Fri, 27 Mar 2026 11:12:23 +0200 Subject: [PATCH 01/10] update doc --- docs/GithubActions-en.md | 6 +++++- docs/GithubActions.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/GithubActions-en.md b/docs/GithubActions-en.md index e060048..ee317eb 100644 --- a/docs/GithubActions-en.md +++ b/docs/GithubActions-en.md @@ -4,12 +4,16 @@ > [!NOTE] > -> This project's GitHub Actions workflow listens for `git push` operations in the `src/blog` and `src/friends` directories. If either directory is updated, the build pipeline will be triggered. +> This project's GitHub Actions workflow listens for `git push` operations in the `src/blog` and `src/friends` directories on the `blog-content` branch. If either directory is updated, the build pipeline will be triggered. > [!IMPORTANT] > > To use this feature, you need to fork this project into your own repository. The workflow can only run in your own repository. +### 0. Create a New Branch + +Create a new branch named `blog-content` based on the `master` branch. Please push new articles to this branch in the future. + ### 1. Set up SSH keys In your repository, go to `Settings > Secrets and variables > Actions`, and add three `Repository secrets`: diff --git a/docs/GithubActions.md b/docs/GithubActions.md index 7ff23ee..e5ed4db 100644 --- a/docs/GithubActions.md +++ b/docs/GithubActions.md @@ -4,12 +4,16 @@ > [!NOTE] > -> 此项目的Github Actions监听`src/blog`和`src/friends`两个目录的`git push`操作,两个目录有更新则触发构建流水线。 +> 此项目的Github Actions监听`blog-content`分支中`src/blog`和`src/friends`两个目录的`git push`操作,两个目录有更新则触发构建流水线。 > [!IMPORTANT] > > 需要使用这个功能请自行Fork一份代码到自己的仓库,在你自己的仓库才能跑流水线。 +### 零、新建一个分支 + +在`master`的基础上新建一个名为`blog-content`的分支,以后新的文章请推送到这个分支里。 + ### 一、设置SSH密钥 在仓库的`Settings > Secrets and variables > Actions`中,添加三个`Repository secrets`,分别为: From aae1fb2b2f8fbe0144b21fe6b02bce007bfe5398 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita <168412973+ClovertaTheTrilobita@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:06:30 +0200 Subject: [PATCH 02/10] Add MIT License to the project --- LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..bdb5c09 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 ClovertaTheTrilobita + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From 1ced484e8125781d786506de4a21fe0ba56a2be0 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita <168412973+ClovertaTheTrilobita@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:08:46 +0200 Subject: [PATCH 03/10] Update README with license details Add licensing information for the repository. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 7b57cd5..9e8c726 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,11 @@ #### 手动部署 将生成的`dist/`目录上传至你的服务器,使用`NGINX`指向index.html。 + +
+ +## ⚖ 许可 + +本仓库中的源代码部分采用 MIT License 开源。 + +除非另有说明,本仓库中的博客文章、其他原创的非代码内容采用 CC BY-NC-ND 4.0 协议。 From ae26f36b78063ef5c7d1e8cef9ac9b8159e94d33 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita <168412973+ClovertaTheTrilobita@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:09:52 +0200 Subject: [PATCH 04/10] Update README to include license section Add license information to the README file. --- README-en.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README-en.md b/README-en.md index 3344f82..0474f38 100644 --- a/README-en.md +++ b/README-en.md @@ -62,3 +62,10 @@ For details, see: [GithubActions-en.md](docs/GithubActions-en.md). Upload the generated `dist/` directory to your server, and configure `NGINX` to point to `index.html`. +
+ +## ⚖️ License + +The source code in this repository is licensed under the MIT License. + +Unless otherwise stated, all blog posts and other original non-code content in this repository are licensed under CC BY-NC-ND 4.0. From 3ff69b65c8932e32461197d08efb441432c36393 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita <168412973+ClovertaTheTrilobita@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:10:06 +0200 Subject: [PATCH 05/10] Update license section emoji in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9e8c726..ab0bf13 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@
-## ⚖ 许可 +## ⚖️ 许可 本仓库中的源代码部分采用 MIT License 开源。 From ff602983159aae6b930e607866c16e376ebc1d9a Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita <168412973+ClovertaTheTrilobita@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:11:51 +0200 Subject: [PATCH 06/10] Format license information in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab0bf13..584f545 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,6 @@ ## ⚖️ 许可 -本仓库中的源代码部分采用 MIT License 开源。 +本仓库中的源代码部分采用 `MIT License` 开源。 -除非另有说明,本仓库中的博客文章、其他原创的非代码内容采用 CC BY-NC-ND 4.0 协议。 +除非另有说明,本仓库中的博客文章、其他原创的非代码内容采用 `CC BY-NC-ND 4.0` 协议。 From 1588a5addc2027c2ed238d24fb064199743b1a07 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita <168412973+ClovertaTheTrilobita@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:12:11 +0200 Subject: [PATCH 07/10] Format license names in README Updated license section to format license names in code style. --- README-en.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README-en.md b/README-en.md index 0474f38..eef79cd 100644 --- a/README-en.md +++ b/README-en.md @@ -66,6 +66,6 @@ Upload the generated `dist/` directory to your server, and configure `NGINX` to ## ⚖️ License -The source code in this repository is licensed under the MIT License. +The source code in this repository is licensed under the `MIT License`. -Unless otherwise stated, all blog posts and other original non-code content in this repository are licensed under CC BY-NC-ND 4.0. +Unless otherwise stated, all blog posts and other original non-code content in this repository are licensed under `CC BY-NC-ND 4.0`. From 7811dfe44bb015f61c401cd5dfa7d67243019a80 Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Sat, 28 Mar 2026 21:17:09 +0200 Subject: [PATCH 08/10] added background --- src/styles/global.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/styles/global.css b/src/styles/global.css index e46d67e..7caa4f3 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -111,6 +111,24 @@ body { line-height: 1.7; } +body::after { + content: ""; + position: fixed; + right: 0; + bottom: 0; + width: 400px; + /* 按需调整大小 */ + height: 400px; + /* 按需调整大小 */ + background-image: url("https://files.seeusercontent.com/2026/03/28/Zd0m/bc7e804dc2c8ecaf407c9d665414ff72.jpg"); + background-repeat: no-repeat; + background-position: right bottom; + background-size: contain; + opacity: 0.35; + pointer-events: none; + z-index: -1; +} + * { box-sizing: border-box; } From f346e64c2d246cfbc19467d50aafb4e638d97f8c Mon Sep 17 00:00:00 2001 From: ClovertaTheTrilobita Date: Sat, 28 Mar 2026 22:42:16 +0200 Subject: [PATCH 09/10] update banner and background update seo header --- public/images/banner-black.svg | 1 + src/components/Header.astro | 36 +++++++++++++++++++++++----- src/i18n/en.ts | 2 +- src/i18n/zh.ts | 2 +- src/layouts/MarkdownPostLayout.astro | 2 +- src/pages/[lang]/about.astro | 2 +- src/pages/[lang]/friends.astro | 2 +- src/pages/[lang]/index.astro | 2 +- src/pages/[lang]/tags/index.astro | 2 +- src/pages/[lang]/timeline.astro | 2 +- src/styles/global.css | 6 ++++- 11 files changed, 44 insertions(+), 15 deletions(-) create mode 100644 public/images/banner-black.svg diff --git a/public/images/banner-black.svg b/public/images/banner-black.svg new file mode 100644 index 0000000..f421fda --- /dev/null +++ b/public/images/banner-black.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/Header.astro b/src/components/Header.astro index 4a458c0..abba686 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -13,15 +13,39 @@ const t = getTranslations(lang);