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. diff --git a/README-en.md b/README-en.md index 3344f82..eef79cd 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`. diff --git a/README.md b/README.md index 7b57cd5..584f545 100644 --- a/README.md +++ b/README.md @@ -62,3 +62,11 @@ #### 手动部署 将生成的`dist/`目录上传至你的服务器,使用`NGINX`指向index.html。 + +
+ +## ⚖️ 许可 + +本仓库中的源代码部分采用 `MIT License` 开源。 + +除非另有说明,本仓库中的博客文章、其他原创的非代码内容采用 `CC BY-NC-ND 4.0` 协议。 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`,分别为: 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); diff --git a/src/layouts/MarkdownPostLayout.astro b/src/layouts/MarkdownPostLayout.astro index e704323..9bcf54d 100644 --- a/src/layouts/MarkdownPostLayout.astro +++ b/src/layouts/MarkdownPostLayout.astro @@ -9,7 +9,7 @@ const t = getTranslations(lang); --- diff --git a/src/pages/[lang]/about.astro b/src/pages/[lang]/about.astro index c0e0c0c..1008196 100644 --- a/src/pages/[lang]/about.astro +++ b/src/pages/[lang]/about.astro @@ -13,7 +13,7 @@ const pageTitle = t.about.title; ---
diff --git a/src/pages/[lang]/friends.astro b/src/pages/[lang]/friends.astro index 067ad5a..5dbc1e9 100644 --- a/src/pages/[lang]/friends.astro +++ b/src/pages/[lang]/friends.astro @@ -13,6 +13,6 @@ const t = getTranslations(lang); const headerTitle = lang === "zh" ? "友情链接" : "Friends"; --- - + diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index 37fad28..c982ba5 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -15,7 +15,7 @@ const headerTitle = lang === "zh" ? "Cloverta的博客" : "Cloverta's blog"; const pageTitle = t.home.title; --- - +

{pageTitle} post.data.tags).flat())]; const pageTitle = lang === "zh" ? "标签索引" : "Tag Index"; --- - +

{t.tags.title}

{t.tags.description}

diff --git a/src/pages/[lang]/timeline.astro b/src/pages/[lang]/timeline.astro index f5a9cfb..3083483 100644 --- a/src/pages/[lang]/timeline.astro +++ b/src/pages/[lang]/timeline.astro @@ -13,7 +13,7 @@ const t = getTranslations(lang); const headerTitle = lang === "zh" ? "时间轴" : "Timeline"; --- - +

{t.nav.timeline}

diff --git a/src/styles/global.css b/src/styles/global.css index e46d67e..be843b0 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -111,6 +111,28 @@ 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; +} + +html.dark body::after { + background-image: url("https://files.seeusercontent.com/2026/03/28/nd1W/pasted-image-1774730083896.webp"); +} + * { box-sizing: border-box; } @@ -123,7 +145,7 @@ h1 { a { - color: #7fb3ff; + color: #416bd6; font-weight: 700; text-decoration: none; }