From 82b077c8e81f8c1d519fc0601036882bb1eb5a7e Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Fri, 1 Aug 2025 08:45:53 +0800 Subject: [PATCH 1/2] fix invalid date --- .github/workflows/gh-pages.yml | 17 +++++++++++------ content/rss.smd | 13 +++++-------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 94fa5ad..0abef3d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,6 +3,8 @@ name: Deploy the website to Github Pages on: push: branches: ["zine", "main"] + pull_request: + workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -20,16 +22,11 @@ concurrency: cancel-in-progress: true jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + build: steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Change if you need git info - - name: Setup Zine uses: kristoff-it/setup-zine@v1 with: @@ -38,6 +35,14 @@ jobs: - name: Build run: zine release + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + if: github.event_name != 'pull_request' + steps: - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/content/rss.smd b/content/rss.smd index 8a2b11b..5e8cbf9 100644 --- a/content/rss.smd +++ b/content/rss.smd @@ -1,6 +1,6 @@ --- .title = "RSS Feeds Overview", -.date = @date("2025-7-27"), +.date = @date("2025-07-27"), .author = "ZigCC", .layout = "index.shtml", .draft = false, @@ -8,10 +8,7 @@ 本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。 -他们的链接分别是: -- [/learn/index.xml]($link.page("learn").alternative('rss')) -- [/monthly/index.xml]($link.page("monthly").alternative('rss')) -- [/post/index.xml]($link.page("post").alternative('rss')) -[/monthly/index.xml]($link.page("monthly").alternative('rss')) -[/post/index.xml]($link.page("post").alternative('rss')) - +他们的链接分别是: +- [/learn/index.xml]($link.page("learn").alternative('rss')) +- [/monthly/index.xml]($link.page("monthly").alternative('rss')) +- [/post/index.xml]($link.page("post").alternative('rss')) From 3ecae0f9eae7f65f87b80d2734e4f750ab985e21 Mon Sep 17 00:00:00 2001 From: jiacai2050 Date: Fri, 1 Aug 2025 08:49:12 +0800 Subject: [PATCH 2/2] 404 --- assets/404.html | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/assets/404.html b/assets/404.html index 2fcdc3e..3749da8 100644 --- a/assets/404.html +++ b/assets/404.html @@ -2,32 +2,14 @@ - 404 - Page Not Found - - - - - - - -

404 - Page Not Found

+
+

404 - Page Not Found

+

the page you are looking for not avaible!

+

Go Home

+