File tree Expand file tree Collapse file tree 3 files changed +24
-39
lines changed Expand file tree Collapse file tree 3 files changed +24
-39
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Deploy the website to Github Pages
33on :
44 push :
55 branches : ["zine", "main"]
6+ pull_request :
7+ workflow_dispatch :
68
79# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
810permissions :
@@ -20,16 +22,12 @@ concurrency:
2022 cancel-in-progress : true
2123
2224jobs :
23- deploy :
24- environment :
25- name : github-pages
26- url : ${{ steps.deployment.outputs.page_url }}
25+ build :
2726 runs-on : ubuntu-latest
2827 steps :
2928 - uses : actions/checkout@v4
3029 with :
3130 fetch-depth : 0 # Change if you need git info
32-
3331 - name : Setup Zine
3432 uses : kristoff-it/setup-zine@v1
3533 with :
@@ -38,14 +36,22 @@ jobs:
3836 - name : Build
3937 run : zine release
4038
41- - name : Setup Pages
42- uses : actions/configure-pages@v5
43-
4439 - name : Upload artifact
4540 uses : actions/upload-pages-artifact@v3
4641 with :
4742 path : " public"
4843
44+
45+ deploy :
46+ environment :
47+ name : github-pages
48+ url : ${{ steps.deployment.outputs.page_url }}
49+ runs-on : ubuntu-latest
50+ needs : build
51+ if : github.event_name != 'pull_request'
52+ steps :
53+ - name : Setup Pages
54+ uses : actions/configure-pages@v5
4955 - name : Deploy to GitHub Pages
5056 id : deployment
5157 uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 22< html lang ="en ">
33 < head >
44 < meta charset ="utf-8 " />
5-
65 < title > 404 - Page Not Found</ title >
7-
8- <!-- Custom styles for this template -->
96 < link href ="/style.css " rel ="stylesheet " />
10-
11- < style >
12- h1 {
13- display : flex;
14- justify-content : center;
15- align-items : center;
16- font-size : 3rem ;
17- }
18- </ style >
19-
20- < script >
21- if ( location . pathname . match ( / \/ \d { 4 } \/ \d { 2 } \/ \d { 2 } \/ / ) ) {
22- location . pathname = location . pathname . replace (
23- / \/ ( \d { 4 } ) \/ ( \d { 2 } ) \/ ( \d { 2 } ) \/ / ,
24- "/$1-$2-$3-"
25- ) ;
26- }
27- </ script >
287 </ head >
29-
308 < body >
31- < h1 > 404 - Page Not Found</ h1 >
9+ < center >
10+ < h1 > 404 - Page Not Found</ h1 >
11+ < p > the page you are looking for not avaible!</ p >
12+ < p > < a href ="/ "> Go Home</ a > </ p >
13+ < center >
3214 </ body >
3315</ html >
Original file line number Diff line number Diff line change 11---
22.title = "RSS Feeds Overview",
3- .date = @date("2025-7 -27"),
3+ .date = @date("2025-07 -27"),
44.author = "ZigCC",
55.layout = "index.shtml",
66.draft = false,
77---
88
99本站一共有 3 个 RSS 索引,分别索引了 学习、月刊和博客,便于满足不同读者的需求。
1010
11- 他们的链接分别是:
12- - [/learn/index.xml]($link.page("learn").alternative('rss'))
13- - [/monthly/index.xml]($link.page("monthly").alternative('rss'))
14- - [/post/index.xml]($link.page("post").alternative('rss'))
15- [/monthly/index.xml]($link.page("monthly").alternative('rss'))
16- [/post/index.xml]($link.page("post").alternative('rss'))
17-
11+ 他们的链接分别是:
12+ - [/learn/index.xml]($link.page("learn").alternative('rss'))
13+ - [/monthly/index.xml]($link.page("monthly").alternative('rss'))
14+ - [/post/index.xml]($link.page("post").alternative('rss'))
You can’t perform that action at this time.
0 commit comments